On Mon, Dec 1, 2008 at 11:25 PM, Julien Nadeau <[EMAIL PROTECTED]> wrote: > On Mon, Dec 01, 2008 at 02:29:13PM -0200, Ernesto Domato wrote: >> Well, I set this enviroment variables: >> >> PATH=/usr/i586-mingw32msvc/bin:/usr/local/cross-tools/i386-mingw32/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games >> CC=/usr/bin/i586-mingw32msvc-gcc >> >> and the win32 sdl and freetype libraries are on >> /usr/local/cross-tools/i386-mingw32. >> >> The configure script of agar-1.3.3 runs fine but when I do make, it > > Can you post the contents of config.log? > >> fails with this: > <snip> >> >> I guess that the main problem is that >> /home/edomato/dev/Juegos/cross/agar-1.3.3 is not included on the -I >> parameter of the compiler so for example config/sharedir.h can be >> found. > > Was the "include" directory properly generated in the build directory? >
Well, evidently I did something wrong when I tried to cross compile Agar because I decided to start again with a clean source directory and even using a different directory and it started to compile fine. But now, my problem is linking and these are the last messages when I do make: /home/edomato/dev/Juegos/agar/tmp/agar-1.3.3/core/dso.c:1: warning: -fPIC ignored for target (all code is position independent) /usr/bin/i586-mingw32msvc-gcc -mno-cygwin -D_AGAR_INTERNAL -D_BSD_SOURCE -I/home/edomato/dev/Juegos/agar/tmp/win32-agar/include -I/home/edomato/dev/Juegos/agar/tmp/win32-agar/include/agar -D_AGAR_CORE_INTERNAL -I/usr/local/cross-tools/i386-mingw32/include/SDL -D_GNU_SOURCE=1 -Dmain=SDL_main -I/home/edomato/dev/Juegos/agar/tmp/win32-agar -c /home/edomato/dev/Juegos/agar/tmp/agar-1.3.3/core/dso.c -o dso.o >/dev/null 2>&1 mv -f .libs/dso.lo dso.lo ..../mk/libtool/libtool --mode=link /usr/bin/i586-mingw32msvc-gcc -o libag_core.la -rpath /usr/local/lib -version-info 1:0:0 config.lo core.lo error.lo event.lo object.lo prop.lo rcs.lo timeout.lo class.lo cpuinfo.lo load_den.lo data_source.lo load_string.lo load_version.lo snprintf.lo vsnprintf.lo vasprintf.lo net_client.lo net_command.lo net_fgetln.lo net_server.lo dir.lo md5.lo sha1.lo rmd160.lo file.lo string_compat.lo dso.lo rm -fr .libs/libag_core.la .libs/libag_core.* .libs/libag_core.* /usr/bin/i586-mingw32msvc-gcc -shared config.lo core.lo error.lo event.lo object.lo prop.lo rcs.lo timeout.lo class.lo cpuinfo.lo load_den.lo data_source.lo load_string.lo load_version.lo snprintf.lo vsnprintf.lo vasprintf.lo net_client.lo net_command.lo net_fgetln.lo net_server.lo dir.lo md5.lo sha1.lo rmd160.lo file.lo string_compat.lo dso.lo -lc -Wl,-soname -Wl,libag_core.so.1 -o ...libs/libag_core.so.1.0.0 /usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/bin/ld: cannot find -lc collect2: ld returned 1 exit status make[1]: *** [libag_core.la] Error 1 make[1]: se sale del directorio `/home/edomato/dev/Juegos/agar/tmp/win32-agar/core' make: *** [all-subdir] Error 1 Thanks. _______________________________________________ Agar mailing list [email protected] http://libagar.org/lists.html
