i receive a compile error when trying to build ta3d. maybe you can help me. my environment is:
ubunty feisty fawn
gcc 4.1.2
ta3d 0.4.0
fmod 40625 (compiled from source)
allegro / gl 4.2.2 / 0.4.2 (compiled from source)
The steps that lead to the error are simple (error messages analogously translated from german ):
1. ./configure (did not complain about anything)
2. make
Code: Select all
g++ -DHAVE_CONFIG_H -I. -I.. -g -O2 -I/usr/local/include -ffast-math -mmmx -fomit-frame-pointer -MT gfx.o -MD -MP -MF .deps/gfx.Tpo -c -o gfx.o gfx.cpp
gfx.cpp: In constructor »TA3D::INTERFACES::GFX::GFX()«:
gfx.cpp:62: Error: »GFX_OPENGL_FULLSCREEN« undefined in this scope
What i did so far:
1. I tracked that switch to alleggl.h but did not get the point why the preprocessor would not have enabled it.
2. Then i examined the config.log in detail and found 2 warnings:
Code: Select all
configure:4566: gcc -E conftest.c
conftest.c:14:28: error: ac_nonexistent.h: No such file or directory
Code: Select all
configure:6261: checking for sqrt
configure:6317: gcc -o conftest -g -O2 conftest.c -lfmodex -lz -lGLU -lGL -L/usr/local/lib -Wl,--export-dynamic -lalleg-4.2.2 -lalleg_unsharable -lagl >&5
conftest.c:57: warning: conflicting types for built-in function 'sqrt'
configure:6323: $? = 0
configure:6341: result: yes
configure:6261: checking for strcasecmp
configure:6317: gcc -o conftest -g -O2 conftest.c -lfmodex -lz -lGLU -lGL -L/usr/local/lib -Wl,--export-dynamic -lalleg-4.2.2 -lalleg_unsharable -lagl >&5
conftest.c:58: warning: conflicting types for built-in function 'strcasecmp'
configure:6323: $? = 0
configure:6341: result: yes
configure:6261: checking for strdup
configure:6317: gcc -o conftest -g -O2 conftest.c -lfmodex -lz -lGLU -lGL -L/usr/local/lib -Wl,--export-dynamic -lalleg-4.2.2 -lalleg_unsharable -lagl >&5
conftest.c:59: warning: conflicting types for built-in function 'strdup'
configure:6323: $? = 0
configure:6341: result: yes
configure:6261: checking for strstr
configure:6317: gcc -o conftest -g -O2 conftest.c -lfmodex -lz -lGLU -lGL -L/usr/local/lib -Wl,--export-dynamic -lalleg-4.2.2 -lalleg_unsharable -lagl >&5
conftest.c:60: warning: conflicting types for built-in function 'strstr'
configure:6323: $? = 0
configure:6341: result: yes
I'm not familiar with C so i don't kow what (pre)compiler switches or libraries might be missing to have the fullscreen-switch defined.
It would be great if you have any ideas that help me.