From: Jesus M. <fo...@gm...> - 2010-05-28 07:12:26
|
Hi all! Thanks brendan and david! it seems that the the main() must be in source file named as the executable/unix name. (I suppose this is obvious for a good autotool guy??) (Is this conclusion true??) Anyway, in TuxHistory I got a cool automated make, and in my school project is worked it around using the TuxHistory executable name... But I still can understand this completely. Again; thanks! 2010/5/27 Brendan Luchen <che...@gm...>: > Jesus, > > What I meant was that, usually you give the linker some object files, > like "factoroids.o", but I don't see any in the command you > posted--just a whole bunch of libraries. Could that be why no main > function is found? > > Best, > Brendan > > On Thu, May 27, 2010 at 1:31 AM, Jesus Mager <fo...@gm...> wrote: >> Hi Brendan >> >> It is a asteroid game (freeasteroids) using my code in tuxmath (and >> the whole TuxMath) that id did for school project. On the way I >> deleted all files that i didnt need, as in TuxHistory. The every >> extraneous thing is: TuxHistory branch are cross compiling well. >> (Freeasteroids/TuxHistory difference is mainly the inclusion of >> factoroids.c/h) >> >> If you want (and of course have some time and interest) you can take a look on: >> http://sourceforge.net/projects/freeasteroids/develop >> or via svn: >> svn co https://freeasteroids.svn.sourceforge.net/svnroot/freeasteroids >> freeasteroids >> >> And of course (very initial) TuxHistory sources! >> http://git.debian.org/?p=tux4kids/tuxhistory.git >> git clone git+ssh://YOU...@gi.../git/tux4kids/tuxhistory.git >> >> Chears! >> >> 2010/5/26 Brendan Luchen <che...@gm...>: >>> Hey Jesus, >>> >>> It looks like the error is with SDLmain, not SDL itself.... >>> I see -lSDLmain is in there several times, not sure what that means.... >>> I don't see any object files, what sources are being compiled? >>> >>> -Brendan >>> >>> On Thu, May 27, 2010 at 12:19 AM, Jesus Mager <fo...@gm...> wrote: >>>> Hi all, >>>> >>>> I am setting up the cross compiling environment with >>>> mingw32-cross-env, I used the tuxmath INSTALL instructions, but it >>>> seems I did someting wrong, or may me a am missing something... >>>> >>>> My mingw instalation is in /opt/mingw-cross-env from mercurial >>>> repository, like the default path in buildw32/cross-configuration, >>>> with the following command: make sdl sdl_mixer sdl_image sdl_net >>>> sdl_ttf sdl_pango librsvg. and the respective ./tmwin.sh on a clean >>>> copy. >>>> >>>> But I get a linking error to the libsdl. But in configure it seems all >>>> OK, any idea? >>>> >>>> ./cross-configure.sh --host=i686-pc-mingw32 >>>> checking build system type... x86_64-pc-linux-gnu >>>> checking host system type... i686-pc-mingw32 >>>> checking target system type... i686-pc-mingw32 >>>> .... >>>> checking for SDL... yes >>>> checking for SDL_IMAGE... yes >>>> checking for SDL_MIXER... yes >>>> checking for TTF_Init in -lSDL_ttf... yes >>>> checking for RSVG... yes >>>> checking for CAIRO... yes >>>> >>>> make >>>> .... >>>> >>>> i686-pc-mingw32-gcc -Wall -g -DDATA_PREFIX=\"data\" -DDEBUG -DSOUND -g >>>> -O2 -D_GNU_SOURCE=1 -Dmain=SDL_main >>>> -I/opt/mingw-cross-env/usr/i686-pc-mingw32/include/SDL >>>> -D_GNU_SOURCE=1 -Dmain=SDL_main >>>> -I/opt/mingw-cross-env/usr/i686-pc-mingw32/include/SDL >>>> -I/opt/mingw-cross-env/usr/i686-pc-mingw32/include/libpng14 >>>> -D_GNU_SOURCE=1 -Dmain=SDL_main >>>> -I/opt/mingw-cross-env/usr/i686-pc-mingw32/include/SDL >>>> -I/opt/mingw-cross-env/usr/i686-pc-mingw32/include -mms-bitfields >>>> -DLIBXML_STATIC >>>> -I/opt/mingw-cross-env/usr/i686-pc-mingw32/include/librsvg-2 >>>> -I/opt/mingw-cross-env/usr/i686-pc-mingw32/include/glib-2.0 >>>> -I/opt/mingw-cross-env/usr/i686-pc-mingw32/lib/glib-2.0/include >>>> -I/opt/mingw-cross-env/usr/i686-pc-mingw32/include/gtk-2.0 >>>> -I/opt/mingw-cross-env/usr/i686-pc-mingw32/include/cairo >>>> -I/opt/mingw-cross-env/usr/i686-pc-mingw32/include/libgsf-1 >>>> -I/opt/mingw-cross-env/usr/i686-pc-mingw32/include/pango-1.0 >>>> -I/opt/mingw-cross-env/usr/i686-pc-mingw32/include/libcroco-0.6 >>>> -I/opt/mingw-cross-env/usr/i686-pc-mingw32/include/pixman-1 >>>> -I/opt/mingw-cross-env/usr/i686-pc-mingw32/include/freetype2 >>>> -I/opt/mingw-cross-env/usr/i686-pc-mingw32/include >>>> -I/opt/mingw-cross-env/usr/i686-pc-mingw32/include/libpng14 >>>> -I/opt/mingw-cross-env/usr/i686-pc-mingw32/include/libxml2 >>>> -I/opt/mingw-cross-env/usr/i686-pc-mingw32/include/cairo >>>> -I/opt/mingw-cross-env/usr/i686-pc-mingw32/include/pixman-1 >>>> -I/opt/mingw-cross-env/usr/i686-pc-mingw32/include/freetype2 >>>> -I/opt/mingw-cross-env/usr/i686-pc-mingw32/include >>>> -I/opt/mingw-cross-env/usr/i686-pc-mingw32/include/libpng14 >>>> -D__GW32__ -L/opt/mingw-cross-env/usr/i686-pc-mingw32/lib -o >>>> FreeAsteroids.exe >>>> /opt/mingw-cross-env/usr/i686-pc-mingw32/lib/libintl.a >>>> /opt/mingw-cross-env/usr/i686-pc-mingw32/lib/libiconv.a >>>> ../linebreak/liblinebreak.a -lm -lSDL_ttf -lfreetype -mwindows >>>> -L/opt/mingw-cross-env/usr/i686-pc-mingw32/lib -lmingw32 -lSDLmain >>>> -lSDL -liconv -lm -luser32 -lgdi32 -lwinmm -ldxguid -mwindows >>>> -L/opt/mingw-cross-env/usr/i686-pc-mingw32/lib -lSDL_image -ltiff >>>> -ljpeg -lmingw32 -lSDLmain -lSDL -liconv -lm -luser32 -lgdi32 -lwinmm >>>> -ldxguid -lpng14 -lz -mwindows >>>> -L/opt/mingw-cross-env/usr/i686-pc-mingw32/lib -lSDL_mixer -lmikmod >>>> -lpthread -lsmpeg -lstdc++ -lmingw32 -lSDLmain -lSDL -liconv -luser32 >>>> -lgdi32 -lwinmm -ldxguid -lvorbisfile -lvorbis -lm -logg >>>> -L/opt/mingw-cross-env/usr/i686-pc-mingw32/lib -lrsvg-2 >>>> -lgdk_pixbuf-2.0 -ltiff -lpng -ljasper -ljpeg -lgsf-1 -lbz2 >>>> -lpangocairo-1.0 -lcroco-0.6 -lgio-2.0 -lcairo -lmsimg32 >>>> -lpangoft2-1.0 -lpangowin32-1.0 -lgdi32 -lpixman-1 -lpng14 >>>> -lfontconfig -lexpat -lfreetype -lpango-1.0 -lm -lgobject-2.0 >>>> -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lole32 -lshlwapi -lpcre -lintl >>>> -lxml2 -lz -liconv -lws2_32 >>>> -L/opt/mingw-cross-env/usr/i686-pc-mingw32/lib -lcairo -lmsimg32 >>>> -lgdi32 -lm -lpixman-1 -lfontconfig -lexpat -lfreetype -liconv -lpng14 >>>> -lz -luuid -lole32 -lwsock32 -mwindows >>>> /opt/mingw-cross-env/usr/i686-pc-mingw32/lib/libSDLmain.a(SDL_win32_main.o): >>>> In function `console_main': >>>> /opt/mingw-cross-env/tmp-sdl/SDL-1.2.14/./src/main/win32/SDL_win32_main.c:315: >>>> undefined reference to `_SDL_main' >>>> collect2: ld returned 1 exit status >>>> >>>> >>>> -- >>>> Jesus Mager >>>> [www.h1n1-al.blogspot.com] >>>> >>>> ------------------------------------------------------------------------------ >>>> >>>> _______________________________________________ >>>> Tuxmath-devel mailing list >>>> Tux...@li... >>>> https://lists.sourceforge.net/lists/listinfo/tuxmath-devel >>>> >>> >> >> >> >> -- >> Jesus Mager >> [www.h1n1-al.blogspot.com] >> > -- Jesus Mager [www.h1n1-al.blogspot.com] |