then it dies building sdl_image complaining about libzlib, png,jpeg etc...
I checked my config.log
same errors with zlib etc aboutconfigure:21543: checking for jpeg_CreateDecompress in -ljpeg
configure:21578: psp-gcc -o conftest -g -O2 -G0 -I"/opt/psp/psp/sdk/include" -I/opt/psp/psp/include/SDL -Dmain=SDL_main -DLOAD_BMP -DLOAD_GIF -L/opt/psp/psp/lib -L/opt/psp/psp/sdk/lib -lc -lpspuser conftest.c -ljpeg -ljpeg -lpng -lz -L/opt/psp/psp/lib -lSDLmain -lSDL -lm -L/opt/psp/psp/sdk/lib -lpspdebug -lpspgu -lpspctrl -lpspge -lpspdisplay -lpsphprm -lpspsdk -lpsprtc -lpspaudio -lc -lpspuser -lpsputility -lpspkernel >&5
/opt/psp/psp/lib/libc.a(setsockopt.o): In function `setsockopt':
../../../../../../newlib/libc/sys/psp/socket.c:293: undefined reference to `sceNetInetSetsockopt'
../../../../../../newlib/libc/sys/psp/socket.c:296: undefined reference to `sceNetInetGetErrno'
/opt/psp/psp/lib/libc.a(setsockopt.o): In function `getsockopt':
../../../../../../newlib/libc/sys/psp/socket.c:167: undefined reference to `sceNetInetGetsockopt'
../../../../../../newlib/libc/sys/psp/socket.c:170: undefined reference to `sceNetInetGetErrno'
collect2: ld returned 1 exit status
configure:21584: $? = 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_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h. */
|
| /* Override any GCC internal prototype to avoid an error.
| Use char because int might match the return type of a GCC
| builtin and then its argument prototype would still apply. */
| #ifdef __cplusplus
| extern "C"
| #endif
| char jpeg_CreateDecompress ();
| int
| main ()
| {
| return jpeg_CreateDecompress ();
| ;
| return 0;
| }
configure:21602: result: no
configure:21614: WARNING:
*** Unable to find JPEG library (http://www.ijg.org/)
I can see 'sceNetInetSetsockopt' it in libpspnet_inet.a/opt/psp/psp/lib/libc.a(setsockopt.o): In function `setsockopt':
../../../../../../newlib/libc/sys/psp/socket.c:293: undefined reference to `sceNetInetSetsockopt'
../../../../../../newlib/libc/sys/psp/socket.c:296: undefined reference to `sceNetInetGetErrno'
/opt/psp/psp/lib/libc.a(setsockopt.o): In function `getsockopt':
../../../../../../newlib/libc/sys/psp/socket.c:167: undefined reference to `sceNetInetGetsockopt'
../../../../../../newlib/libc/sys/psp/socket.c:170: undefined reference to `sceNetInetGetErrno'
which is in libpspsdk.a and also /opt/psp/psp/lib/libc.a
very weird that SDL built ok but sdl_image wont...
in the end I hacked the makefile with -DLOAD_PNG -DLOAD_JPG and added -lz -lm -lc -lpspnet_inet -lpng to the libs line...
Id rather it built cleanly tho...
anyone got any suggestions??