Jump to content

Compiling SDL


neozeed
 Share

4 posts in this topic

Recommended Posts

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

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.

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

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

 

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

 Share

×
×
  • Create New...