Compiling on Linux January 07, 2009, 09:39:20 pm Hi, I'm trying to compile the source code on linux. I get the following error:===> LD sim/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../crt1.o: In function `_start':(.text+0x18): undefined reference to `main'collect2: ld returned 1 exit statusmake: *** [sim] Error 1Any ideas how to fix this? In case it makes any difference, I've attached my config.default - I'm not sure what settings I need for that!Cheers Quote Selected
Re: Compiling on Linux Reply #1 – January 07, 2009, 09:47:15 pm Porbably no sdl installed. And the SDL_CONFIG= line should be commented. Actually, you can try to run "sh configure.sh" from simutrans/simutrans, which will generate (hopefully) a working config.default too. Quote Selected
Re: Compiling on Linux Reply #2 – January 07, 2009, 10:01:51 pm I have libsdl installed, and commenting the SDL_CONFIG line still gives an error.I can't find configure.sh - where do I get this from?Edit: I've now managed to get it to work by reinstalling a newer version of sdl. Thanks for the help. Quote Selected Last Edit: January 07, 2009, 10:23:43 pm by The Hood
Re: Compiling on Linux Reply #3 – January 07, 2009, 10:16:44 pm Please check whether all .c/.cc files could be compiled. The build process may not stop if one step failed. Quote Selected
Re: Compiling on Linux Reply #4 – January 07, 2009, 10:21:00 pm You do not have SDL_devel installed then. You need to install the developer libraries. SDL_config should not give an error on Linux, this line was only for mingw. Quote Selected
Re: Compiling on Linux Reply #5 – January 07, 2009, 10:32:41 pm Thanks - see above, you guys responded while I was editing to say I'd managed to do it OK. Quote Selected
Re: Compiling on Linux Reply #6 – January 10, 2009, 04:52:25 pm Quote from: The Hood – on January 07, 2009, 10:32:41 pmThanks - see above, you guys responded while I was editing to say I'd managed to do it OK.Excellent, glad that you managed to compile! Have you been able to test the patches yet? Quote Selected