En dv, 2001-10-19 a 14:59, Alexandre Courbot escribio:
Now configure runs well, but when it’s creating the library I have some
errors from linking (and much warnings about other libraries).
I’m sorry but now I cannot paste the errors.
Well, you’ll have to if you want us to be of any help… We can’t
"guess" what’s wrong.
Alex.
Ooooh, you are not a wizard?
Well, I paste the error, but only for you :-). The rest of the world
that it does not read.
/bin/sh ./libtool --mode=link gcc -g -O2
-I/usr/local/cross-tools/i386-mingw32msvc/include
-I/usr/local/cross-tools/i386-mingw32msvc/include/SDL -Dmain=SDL_main
-DLOAD_BMP -DLOAD_GIF -DLOAD_JPG -DLOAD_LBM -DLOAD_PCX -DLOAD_PNG
-DLOAD_PNM -DLOAD_TGA -DLOAD_XPM -o libSDL_image.la -rpath
/usr/local/lib -release 1.2 -version-info 1:0: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
-L/usr/local/cross-tools/i386-mingw32msvc/lib -lmingw32 -lSDLmain -lSDL
-mwindows -L /lib/mingw -lmsvcrt -mno-cygwin -ljpeg -lpng -lz
-L/usr/local/cross-tools/i386-mingw32msvc/lib -lmingw32 -lSDLmain -lSDL
-mwindows -L /lib/mingw -lmsvcrt -mno-cygwin
rm -fr .libs/libSDL_image.la .libs/libSDL_image.*
.libs/libSDL_image-1.2.*
cd: can’t cd to
libtool: link: warning: cannot determine absolute directory name of ' libtool: link: passing it literally to the linker, although it might fail cd: can't cd to cd: can't cd to libtool: link: warning: cannot determine absolute directory name of
'
libtool: link: passing it literally to the linker, although it might
fail
cd: can’t cd to
*** Warning: This library needs some functionality provided by
-lmingw32.
*** I have the capability to make that library automatically link in
when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
*** Warning: This library needs some functionality provided by -lmsvcrt.
*** I have the capability to make that library automatically link in
when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
*** Warning: This library needs some functionality provided by
-lmingw32.
*** I have the capability to make that library automatically link in
when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
*** Warning: This library needs some functionality provided by -lmsvcrt.
*** I have the capability to make that library automatically link in
when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.
generating symbol list for libSDL_image.la' test -f .libs/SDL_image.dll-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < ./libtool > .libs/SDL_image.dll-ltdll.c test -f .libs/SDL_image.dll-ltdll.o || (cd .libs && gcc -U__CYGWIN__ -U__CYGWIN32__ -c SDL_image.dll-ltdll.c) dlltool --exclude-symbols _DllMain at 12,_cygwin_dll_entry at 12,_cygwin_noncygwin_dll_entry at 12 --output-def .libs/SDL_image.dll-def .libs/SDL_image.dll-ltdll.o IMG.o IMG_bmp.o IMG_gif.o IMG_jpg.o IMG_lbm.o IMG_pcx.o IMG_png.o IMG_pnm.o IMG_tga.o IMG_tif.o IMG_xcf.o IMG_xpm.o sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < .libs/SDL_image.dll-def > .libs/libSDL_image.expecho EXPORTS > .libs/SDL_image.dll-def _lt_hint=1; cat .libs/libSDL_image.exp | while read symbol; do set dummy $symbol; case $# in 2) echo " $2 @ $_lt_hint ; " >> .libs/SDL_image.dll-def;; *) echo " $2 @ $_lt_hint $3 ; " >> .libs/SDL_image.dll-def;; esac; _lt_hint=
expr 1 + $lt_hint`; done
test -f .libs/SDL_image.dll-ltdll.c || sed -e “/^# /* ltdll.c starts
here *//,/^# /* ltdll.c ends here *// { s/^# //; p; }” -e d <
./libtool > .libs/SDL_image.dll-ltdll.c
test -f .libs/SDL_image.dll-ltdll.o || (cd .libs && gcc -U__CYGWIN_
-U__CYGWIN32__ -c SDL_image.dll-ltdll.c)
gcc -Wl,–base-file,.libs/SDL_image.dll-base -Wl,–dll -nostartfiles
-Wl,-e,_DllMain at 12 -o .libs/SDL_image.dll .libs/SDL_image.dll-ltdll.o
IMG.o IMG_bmp.o IMG_gif.o IMG_jpg.o IMG_lbm.o IMG_pcx.o IMG_png.o
IMG_pnm.o IMG_tga.o IMG_tif.o IMG_xcf.o IMG_xpm.o
-L/usr/local/cross-tools/i386-mingw32msvc/lib -lSDLmain -lSDL -L -ljpeg
-lpng -lz -lSDLmain -lSDL -L/usr/lib/mingw -mno-cygwin
IMG.o: In function IMG_string_equals': /cygdrive/c/misdoc~1/kk/SDL_image/IMG.c:74: undefined reference to
imp___ctype’
IMG_jpg.o: In function jpeg_SDL_RW_src': /cygdrive/c/misdoc~1/kk/SDL_image/IMG_jpg.c:167: undefined reference to
_imp__jpeg_resync_to_restart’
IMG_jpg.o: In function IMG_LoadJPG_RW': /cygdrive/c/misdoc~1/kk/SDL_image/IMG_jpg.c:183: undefined reference to
_imp__jpeg_std_error’
/cygdrive/c/misdoc~1/kk/SDL_image/IMG_jpg.c:184: undefined reference to
_imp__jpeg_CreateDecompress' /cygdrive/c/misdoc~1/kk/SDL_image/IMG_jpg.c:186: undefined reference to
_imp__jpeg_read_header’
/cygdrive/c/misdoc~1/kk/SDL_image/IMG_jpg.c:197: undefined reference to
_imp__jpeg_calc_output_dimensions' /cygdrive/c/misdoc~1/kk/SDL_image/IMG_jpg.c:214: undefined reference to
_imp__jpeg_start_decompress’
/cygdrive/c/misdoc~1/kk/SDL_image/IMG_jpg.c:218: undefined reference to
_imp__jpeg_read_scanlines' /cygdrive/c/misdoc~1/kk/SDL_image/IMG_jpg.c:220: undefined reference to
_imp__jpeg_finish_decompress’
/cygdrive/c/misdoc~1/kk/SDL_image/IMG_jpg.c:224: undefined reference to
_imp__jpeg_destroy_decompress' IMG_png.o: In function
IMG_LoadPNG_RW’:
/cygdrive/c/misdoc~1/kk/SDL_image/IMG_png.c:141: undefined reference to
setjmp' IMG_pnm.o: In function
ReadNumber’:
/cygdrive/c/misdoc~1/kk/SDL_image/IMG_pnm.c:82: undefined reference to
_imp___ctype_' /cygdrive/c/misdoc~1/kk/SDL_image/IMG_pnm.c:89: undefined reference to
imp___ctype’
IMG_xpm.o: In function string_equal': /cygdrive/c/misdoc~1/kk/SDL_image/IMG_xpm.c:161: undefined reference to
imp___ctype’
IMG_xpm.o: In function load_xpm': /cygdrive/c/misdoc~1/kk/SDL_image/IMG_xpm.c:386: undefined reference to
imp___ctype’
collect2: ld returned 1 exit status
make: *** [libSDL_image.la] Error 1