forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Errors compiling SDL_image library...

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
statikeffeck



Joined: 15 May 2005
Posts: 11

PostPosted: Thu Aug 25, 2005 12:11 pm    Post subject: Errors compiling SDL_image library... Reply with quote

OK I would like to compile the "Vectoroids" game found in pspware of SVN.

So I am getting all of the required libraries from SVN (in order)
zlib - maked & installed
libpng - maked & installed
jpeg - maked & installed
SDL - maked & installed
SDL_image - got errors, explained below
SDL_mixer - didn't try yet

for SDL_image, I ran ./autogen.sh and then did:
Code:
LDFLAGS="-L`psp-config --pspsdk-path`/lib -lc -lpspuser" \
     ./configure --host psp --with-sdl-prefix=`psp-config --psp-prefix` \
     --prefix=`psp-config --psp-prefix`


it complained with:
Code:

...
checking for PSPSDK... /usr/local/pspdev/psp/sdk
checking for sdl-config... /usr/local/pspdev/psp/bin/sdl-config
checking for SDL - version >= 1.2.4... cross compiling; assumed OK...
yes
checking for jpeg_CreateDecompress in -ljpeg... no
configure: WARNING:
*** Unable to find JPEG library (http://www.ijg.org/)

configure: WARNING: JPG image loading disabled
...
similar errors for PNG and zlib libraries


I'm sure there's a way to tell the ./configure where the image libraries are. I did a search and found that libjpeg.a exists 3 times:
in C:/cygwin/lib
C:/cygwin/home/StatiK/jpeg
C:/cygwin/usr/local/pspdev/psp/lib

Thanks people.
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Thu Aug 25, 2005 12:18 pm    Post subject: Reply with quote

You should have a file in the SDL_image directory called config.log that gives details on why it failed to find libjpeg (near the bottom). Could you post the relevant portions of that log here?
Back to top
View user's profile Send private message
statikeffeck



Joined: 15 May 2005
Posts: 11

PostPosted: Thu Aug 25, 2005 12:26 pm    Post subject: Relevant fail info Reply with quote

ok here is the relevant info from config.log:
Code:
...
configure:20693: checking for SDL - version >= 1.2.4
configure:20809: result: yes
configure:20938: checking for jpeg_CreateDecompress in -ljpeg
configure:20968: psp-gcc -o conftest -g -O2 -G0 -I"/usr/local/pspdev/psp/sdk/include" -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -DLOAD_BMP -DLOAD_GIF  -L/usr/local/pspdev/psp/sdk/lib -lc -lpspuser conftest.c -ljpeg   -L/usr/local/pspdev/psp/lib -lSDLmain -lSDL -lm -L/usr/local/pspdev/psp/sdk/lib -lpspdebug -lpspgu -lpspctrl -lpspge -lpspdisplay -lpsphprm -lpspaudio -lc -lpspuser -lpspkernel >&5
/usr/local/pspdev/psp/lib/libSDLmain.a(SDL_psp_main.o): In function `loaderInit':
psp/SDL_psp_main.c:108: undefined reference to `pspSdkInstallNoDeviceCheckPatch'
collect2: ld returned 1 exit status
configure:20974: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "SDL_image"
| #define VERSION "1.2.4"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_UNISTD_H 1
| #ifdef __cplusplus
| extern "C" void std::exit (int); using std::exit;
| #endif
| /* end confdefs.h.  */
|
| /* Override any gcc2 internal prototype to avoid an error.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
|    builtin and then its argument prototype would still apply.  */
| char jpeg_CreateDecompress ();
| int
| main ()
| {
| jpeg_CreateDecompress ();
|   ;
|   return 0;
| }
configure:21000: result: no
configure:21012: WARNING:
*** Unable to find JPEG library (http://www.ijg.org/)

configure:21016: WARNING: JPG image loading disabled
...


ah... so we see pspSdkInstallNoDeviceCheckPatch has something to do with the problem.
Back to top
View user's profile Send private message
rinco



Joined: 21 Jan 2005
Posts: 255
Location: Canberra, Australia

PostPosted: Thu Aug 25, 2005 12:34 pm    Post subject: Reply with quote

you will need to update your SDL from SVN... sdl-config now spits out -lpspsdk (has pspSdkInstallNoDeviceCheckPatch).
Back to top
View user's profile Send private message
statikeffeck



Joined: 15 May 2005
Posts: 11

PostPosted: Thu Aug 25, 2005 12:48 pm    Post subject: Solved Reply with quote

Thank you, this solved the issue.

Moral of the story: Update all your packages with SVN.
Back to top
View user's profile Send private message
rinco



Joined: 21 Jan 2005
Posts: 255
Location: Canberra, Australia

PostPosted: Thu Aug 25, 2005 1:08 pm    Post subject: Reply with quote

was my bad... but yes, always update from svn.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group