neozeed Posted August 29, 2005 Share Posted August 29, 2005 Ok, first I used the SDL from CVS... Also you have to tell the system to use the 3.3 compiler, as the default 4.0 is not supported by SDL (the linker freaks) Here is the steps I used cvs -d :pserver:guest@libsdl.org:/home/sdlweb/libsdl.org/cvs login # Hit <return> when prompted for a password cvs -z3 -d :pserver:guest@libsdl.org:/home/sdlweb/libsdl.org/cvs checkout SDL12 sudo gcc_select 3.3 cd SDL12; ./autogen.sh; ./configure CC=gcc-3.3; make; make install cd test ./autogen.sh ;./configure CC=gcc-3.3;make if it fails verify that the Makefile has a line like this: OBJCFLAGS = -g -O2 -fno-common ........ the -fno-common is the important bit... The test programs ran including the opengl, and the sound. Link to comment Share on other sites More sharing options...
julian23 Posted September 1, 2005 Share Posted September 1, 2005 Ok, first I used the SDL from CVS... Also you have to tell the system to use the 3.3 compiler, as the default 4.0 is not supported by SDL (the linker freaks) Here is the steps I used cvs -d :pserver:guest@libsdl.org:/home/sdlweb/libsdl.org/cvs login # Hit <return> when prompted for a password cvs -z3 -d :pserver:guest@libsdl.org:/home/sdlweb/libsdl.org/cvs checkout SDL12 sudo gcc_select 3.3 cd SDL12; ./autogen.sh; ./configure CC=gcc-3.3; make; make install cd test ./autogen.sh ;./configure CC=gcc-3.3;make if it fails verify that the Makefile has a line like this: OBJCFLAGS = -g -O2 -fno-common ........ the -fno-common is the important bit... The test programs ran including the opengl, and the sound. <{POST_SNAPBACK}> after ./conf tanks for this config, but it does not work for me. after ./configure there is an error message ! checking for gcc... gcc checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details. make: *** [config.status] Error 77 i tried to copy gcc 3.5 from darwin to my tiger intel installation but after the sudo gcc_select 3.5 it shows : The following is missing from your gcc 3.5 compiler installation. Reinstall the 3.5 compiler, or use another release. /usr/include/gcc/darwin/3.5/float.h /usr/include/gcc/darwin/3.5/stdarg.h /usr/include/gcc/darwin/3.5/stdbool.h /usr/include/gcc/darwin/3.5/varargs.h the original zip does not contain these files ! Link to comment Share on other sites More sharing options...
phoebus Posted September 4, 2005 Share Posted September 4, 2005 after ./conftanks for this config, but it does not work for me. after ./configure there is an error message ! checking for gcc... gcc checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details. make: *** [config.status] Error 77 Same here, BUT... I've simply used the STABLE release, it compiles and links with gcc 4 ! I've used no particular switch, ./configure; make; make installe Ditto for the test suite, just type export SDL_CONFIG=/usr/local/bin/sdl-config before the usual .configure; make Link to comment Share on other sites More sharing options...
sampson Posted September 5, 2005 Share Posted September 5, 2005 get darwin ports...sdl is easy to install then... sudo gcc_select 4.0 sudo port install sdl done! Note: don't use gcc 3.3...ever. get gcc 3.5 universal from here: http://opendarwin.org/~kevin/ the 3.3 for some reason or another compiles ppc Link to comment Share on other sites More sharing options...
Recommended Posts