Hi, Sorry for the delay in response.
Thank you for the idea to check the config.log. The log was very useful. That particular problem was because the config script was linking with an old version of gg (from a previous unsuccessful attempt at compiling freeorion), instead of the included version.
So I deleted the old version of gg. But sadly, building is still not successful.
Code: Select all
bash-3.00$ scons
scons: Reading SConscript files ...
...
Checking for gluLookAt() in C library GLU... yes
Checking for sdl-config... yes
Usage: sdl-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--cflags] [--libs] [--static-libs]
Checking SDL version >= 1.2.7... yes
Linking SDL/OpenGL test app... failed
SDL configuration... failed
bash-3.00$
And, from config.log:
Code: Select all
Checking for sdl-config...
Result: yes
Checking SDL version >= 1.2.7...
Result: yes
Linking SDL/OpenGL test app...
.sconf_temp/conftest_13.c <-
|
|#include <SDL/SDL.h>
|#include <SDL/SDL_opengl.h>
|int main()
|{
| SDL_Init(SDL_INIT_VIDEO);
| SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 5);
| SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 5);
| SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 5);
| SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 16);
| SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
| SDL_SetVideoMode(640, 480, SDL_GetVideoInfo()->vfmt->BitsPerPixel, SDL_OP
ENGL);
| glBegin(GL_TRIANGLES);
| glEnd();
| return 0;
|}
|
gcc -pthread -D_REENTRANT -I/usr/local/include/boost-1_33_1 -I/usr/include/SDL -
c -o .sconf_temp/conftest_13.o .sconf_temp/conftest_13.c
gcc -pthread -o .sconf_temp/conftest_13 .sconf_temp/conftest_13.o -L/usr/local/l
ib -lboost_serialization-gcc -lboost_iostreams-gcc -lboost_signals-gcc -lboost_f
ilesystem-gcc -lGL -lGLU
.sconf_temp/conftest_13.o(.text+0x16): In function `main':
: undefined reference to `SDL_Init'
.sconf_temp/conftest_13.o(.text+0x25): In function `main':
: undefined reference to `SDL_GL_SetAttribute'
.sconf_temp/conftest_13.o(.text+0x34): In function `main':
: undefined reference to `SDL_GL_SetAttribute'
.sconf_temp/conftest_13.o(.text+0x43): In function `main':
: undefined reference to `SDL_GL_SetAttribute'
.sconf_temp/conftest_13.o(.text+0x52): In function `main':
: undefined reference to `SDL_GL_SetAttribute'
.sconf_temp/conftest_13.o(.text+0x61): In function `main':
: undefined reference to `SDL_GL_SetAttribute'
.sconf_temp/conftest_13.o(.text+0x6e): In function `main':
: undefined reference to `SDL_GetVideoInfo'
.sconf_temp/conftest_13.o(.text+0x8c): In function `main':
: undefined reference to `SDL_SetVideoMode'
collect2: ld returned 1 exit status
scons: *** [.sconf_temp/conftest_13] Error 1
Result: failed
SDL configuration...
Result: failed
I'm using the latest version from svn (Apr 11, 2006).
-Greg