[SDL] [sdl_image] Compile errors on darwin8 with libSDL_image and libPNG
Simon
simon.xhz at gmail.com
Sun Jul 16 16:57:58 PDT 2006
> You could try something like:
> CFLAGS="-Os -I$C/include" ./configure --prefix=$C
Great stuff! Thanks Frank!
Passed ./configure, now compiling as I type... However, just as a
note, it gave me the error that CFLAGS wasn't a known command, I
believe it has to do more with the fact I'm using tcsh rather than
bash, anyway, using setenv did the trick!
Hmmm, compilation finally got some errors, here's the end of the ./configure:
checking for jpeg_CreateDecompress in -ljpeg... no
configure: WARNING: *** Unable to find JPEG library (http://www.ijg.org/)
configure: WARNING: JPG image loading disabled
checking for png_create_read_struct in -lpng... yes
checking for TIFFClientOpen in -ltiff... no
configure: WARNING: *** Unable to find Tiff library
(http://www.remotesensing.org/libtiff/)
configure: WARNING: TIF image loading disabled
I do not use neither jpeg nor tiff, so I don't really care about this,
however, compilation gives this:
/bin/sh ./libtool --tag=CC --mode=link gcc -Os
-I/Users/simon/Desktop/compilation/usr_local.darwin/include
-I/Users/simon/Desktop/compilation/usr_local.darwin/include/SDL
-D_GNU_SOURCE=1 -D_THREAD_SAFE -o libSDL_image.la -rpath
/Users/simon/Desktop/compilation/usr_local.darwin/lib -no-undefined
-release 1.2 -version-info 1:4:1 IMG.lo IMG_bmp.lo IMG_gif.lo
IMG_jpg.lo IMG_lbm.lo IMG_pcx.lo IMG_png.lo IMG_pnm.lo IMG_tga.lo
IMG_tif.lo IMG_xcf.lo IMG_xpm.lo IMG_xv.lo -lpng -lz -ljpeg -ltiff -lz
-L/Users/simon/Desktop/compilation/usr_local.darwin/lib -lSDLmain
-lSDL -Wl,-framework,Cocoa
gcc -dynamiclib -o .libs/libSDL_image-1.2.0.1.4.dylib .libs/IMG.o
.libs/IMG_bmp.o .libs/IMG_gif.o .libs/IMG_jpg.o .libs/IMG_lbm.o
.libs/IMG_pcx.o .libs/IMG_png.o .libs/IMG_pnm.o .libs/IMG_tga.o
.libs/IMG_tif.o .libs/IMG_xcf.o .libs/IMG_xpm.o .libs/IMG_xv.o -lpng
-ljpeg -ltiff -lz
-L/Users/simon/Desktop/compilation/usr_local.darwin/lib -lSDLmain
/Users/simon/Desktop/compilation/usr_local.darwin/lib/libSDL.dylib
-Wl,-framework -Wl,Cocoa -install_name
/Users/simon/Desktop/compilation/usr_local.darwin/lib/libSDL_image-1.2.0.dylib
-Wl,-compatibility_version -Wl,2 -Wl,-current_version -Wl,2.4
/usr/bin/libtool: can't locate file for: -ljpeg
/usr/bin/libtool: file: -ljpeg is not an object file (not allowed in a library)
/usr/bin/libtool: can't locate file for: -ltiff
/usr/bin/libtool: file: -ltiff is not an object file (not allowed in a library)
make: *** [libSDL_image.la] Error 1
Strange thing, first thing i see this error (I've been using SDL_image
for a long time now), will play and try to fix this, however if you
have any ideas, I'll be monitoring my emails for responses.
Thanks a lot!
Simon
More information about the SDL
mailing list