[Libuta-develop] Problem cross-compiling with mingw
Status: Beta
Brought to you by:
klaux
From: Sebastien S. <seb...@gm...> - 2001-02-27 13:46:14
|
Hello, I have a problem cross-compiling libuta. I use this commands (cross-* comes from SDL cross-compilation page): ./cross-configure.sh --prefix=/usr/local/cross-tools/i386-mingw32msvc --enable-win32 ./cross-make.sh While the library is built correctly, building the demos always returns the same mistake: creating demos/Makefile make[2]: Leaving directory `/home/sable/tim/dev/graphique/orig/newuta/libuta/demos' make[2]: Entering directory `/home/sable/tim/dev/graphique/orig/newuta/libuta/demos' c++ -DHAVE_CONFIG_H -I. -I. -I.. -I../uta -Wall -I/usr/local/cross-tools/i386-mingw32msvc/include -I/usr/local/cross-tools/i386-mingw32msvc/include/SDL -Dmain=SDL_main -I/usr/local/cross-tools/i386-mingw32msvc/lib/sigc++/include -I/usr/local/cross-tools/i386-mingw32msvc/include -c simple.cc /bin/sh ../libtool --mode=link c++ -o simple.exe simple.o ../uta/libuta.la -lttf -lSDL_mixer -lpng -lz -lstdc++ -L/usr/local/cross-tools/i3386-mingw32msvc/lib -lmingw32 -lSDLmain -lSDL -mwindows -L/usr/local/cross-tools/i386-mingw32msvc/lib -lsigc -lsmpeg mkdir .libs c++ -o simple.exe simple.o ../uta/.libs/libuta.a -lttf -lSDL_mixer -lpng -lz -lstdc++ -L/usr/local/cross-tools/i386-mingw32msvc/lib -lmingw32 -lSDLmain -lSDL -lsigc -lsmpeg -lttf -lSDL_mixer -lpng -lz -lstdc++ -L/usr/local/cross-tools/i386-mingw32msvc/lib -lmingw32 -lSDLmain -lSDL -mwindows -L/usr/local/cross-tools/i386-mingw32msvc/lib -lsigc -lsmpeg ../uta/.libs/libuta.a(surface_io.o)(.text+0x2dc):surface_io.cc: undefined reference to `png_init_io' ../uta/.libs/libuta.a(surface_io.o)(.text+0xa84):surface_io.cc: undefined reference to `png_init_io' make[2]: *** [simple.exe] Erreur 1 make[2]: Leaving directory `/home/sable/tim/dev/graphique/orig/newuta/libuta/demos' make[1]: *** [all-recursive] Erreur 1 make[1]: Leaving directory `/home/sable/tim/dev/graphique/orig/newuta/libuta' make: *** [all-recursive-am] Erreur 2 the libpng is the one provided on the SDL cross-compiling page, so the problem probably does not come from there. About the same mistake happen when trying to produce a dll of libuta. Any help would be appreciated. By the way, is there a devel version of libuta somewhere, all the different tags on sourceforge seem to correspond to the same source code... I'd like to make a few modifications to the library so I prefer to work on the latest version. Thanks -- Sent through GMX FreeMail - http://www.gmx.net |