Hi,
I have several problems with the sdl/glx system in the mentioned versions.
Basically, when trying to start UFO, I get
------- video initialization -------
SDL version: 1.2.10
I: setting mode 6: 1024x768 (fullscreen: yes)
SDL SetVideoMode failed: Couldn't find matching GLX visual - try to reduce the r_bitdepth value
Failed to set video mode 1024x768 fullscreen.
SDL SetVideoMode failed: Couldn't find matching GLX visual - try to reduce the r_bitdepth value
Error: Video subsystem failed to initialize
(same for +set vid_ref sdl)
The available glx visuals are (from glxinfo):
glu version: 1.3
glu extensions:
GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess
visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
----------------------------------------------------------------------
0x21 16 tc 0 16 0 r y . 5 6 5 0 4 24 0 16 16 16 16 0 0 None
0x22 16 dc 0 16 0 r y . 5 6 5 0 4 24 0 16 16 16 16 0 0 None
0x23 16 tc 0 16 0 r . . 5 6 5 0 4 24 0 16 16 16 16 0 0 None
0x24 16 tc 0 16 0 r y . 5 6 5 0 4 24 8 16 16 16 16 0 0 None
0x25 16 tc 0 16 0 r . . 5 6 5 0 4 24 8 16 16 16 16 0 0 None
0x26 16 tc 0 16 0 r y . 5 6 5 0 4 0 0 16 16 16 16 0 0 None
0x27 16 tc 0 16 0 r . . 5 6 5 0 4 0 0 16 16 16 16 0 0 None
0x28 16 tc 0 16 0 r y . 5 6 5 0 4 24 0 16 16 16 16 2 1 Ncon
0x29 16 tc 0 16 0 r y . 5 6 5 0 4 24 0 16 16 16 16 4 1 Ncon
0x2a 16 tc 0 16 0 r . . 5 6 5 0 4 24 0 16 16 16 16 2 1 Ncon
0x2b 16 tc 0 16 0 r . . 5 6 5 0 4 24 0 16 16 16 16 4 1 Ncon
0x2c 16 tc 0 16 0 r y . 5 6 5 0 4 24 8 16 16 16 16 2 1 Ncon
0x2d 16 tc 0 16 0 r y . 5 6 5 0 4 24 8 16 16 16 16 4 1 Ncon
0x2e 16 tc 0 16 0 r . . 5 6 5 0 4 24 8 16 16 16 16 2 1 Ncon
0x2f 16 tc 0 16 0 r . . 5 6 5 0 4 24 8 16 16 16 16 4 1 Ncon
0x30 16 dc 0 16 0 r . . 5 6 5 0 4 24 0 16 16 16 16 0 0 None
0x31 16 dc 0 16 0 r y . 5 6 5 0 4 24 8 16 16 16 16 0 0 None
0x32 16 dc 0 16 0 r . . 5 6 5 0 4 24 8 16 16 16 16 0 0 None
0x33 16 dc 0 16 0 r y . 5 6 5 0 4 0 0 16 16 16 16 0 0 None
0x34 16 dc 0 16 0 r . . 5 6 5 0 4 0 0 16 16 16 16 0 0 None
0x35 16 dc 0 16 0 r y . 5 6 5 0 4 24 0 16 16 16 16 2 1 Ncon
0x36 16 dc 0 16 0 r y . 5 6 5 0 4 24 0 16 16 16 16 4 1 Ncon
0x37 16 dc 0 16 0 r . . 5 6 5 0 4 24 0 16 16 16 16 2 1 Ncon
0x38 16 dc 0 16 0 r . . 5 6 5 0 4 24 0 16 16 16 16 4 1 Ncon
0x39 16 dc 0 16 0 r y . 5 6 5 0 4 24 8 16 16 16 16 2 1 Ncon
0x3a 16 dc 0 16 0 r y . 5 6 5 0 4 24 8 16 16 16 16 4 1 Ncon
0x3b 16 dc 0 16 0 r . . 5 6 5 0 4 24 8 16 16 16 16 2 1 Ncon
0x3c 16 dc 0 16 0 r . . 5 6 5 0 4 24 8 16 16 16 16 4 1 Ncon
It looks like there are really just 16 bit visuals, is this OK?
Closed-source nvidia driver and glx module are loaded, and other glx games work without problems (e.g. Nexuiz, glxgears...).
SDL libs are installed and OK according to ./configure, however at make I get several pages (!) of:
/usr/include/SDL/begin_code.h:94:8: warning: extra tokens at end of #endif directive
In file included from /usr/include/SDL/SDL_cpuinfo.h:31,
from /usr/include/SDL/SDL.h:32,
from src/renderer/../client/ref.h:36,
from src/renderer/r_local.h:32,
from src/renderer/r_surf.c:26:
/usr/include/SDL/begin_code.h:94:8: warning: extra tokens at end of #endif directive
In file included from /usr/include/SDL/SDL_active.h:31,
from /usr/include/SDL/SDL_events.h:30,
from /usr/include/SDL/SDL.h:35,
from src/renderer/../client/ref.h:36,
from src/renderer/r_local.h:32,
from src/renderer/r_surf.c:26:
/usr/include/SDL/begin_code.h:94:8: warning: extra tokens at end of #endif directive
In file included from /usr/include/SDL/SDL_keyboard.h:32,
from /usr/include/SDL/SDL_events.h:31,
from /usr/include/SDL/SDL.h:35,
from src/renderer/../client/ref.h:36,
from src/renderer/r_local.h:32,
from src/renderer/r_surf.c:26:
/usr/include/SDL/begin_code.h:94:8: warning: extra tokens at end of #endif directive
In file included from /usr/include/SDL/SDL_video.h:32,
from /usr/include/SDL/SDL_mouse.h:30,
from /usr/include/SDL/SDL_events.h:32,
from /usr/include/SDL/SDL.h:35,
from src/renderer/../client/ref.h:36,
from src/renderer/r_local.h:32,
from src/renderer/r_surf.c:26:
/usr/include/SDL/begin_code.h:94:8: warning: extra tokens at end of #endif directive
In file included from /usr/include/SDL/SDL_mouse.h:32,
from /usr/include/SDL/SDL_events.h:32,
from /usr/include/SDL/SDL.h:35,
from src/renderer/../client/ref.h:36,
from src/renderer/r_local.h:32,
from src/renderer/r_surf.c:26:
for about every SDL .h item.
Oh, and once I got
* [UFO] ... linking (-ldl -lm -lz -lcurl -ljpeg -lpng -lSDL_ttf -L/usr/lib -lSDL -lpthread)
debug-linux-gnu-i386/client/client/cl_sound.o: In function `S_Music_Stop':
/home/xaver/Spiele/ufo/trunk/src/client/cl_sound.c:67: undefined reference to `Mix_HaltMusic'
/home/xaver/Spiele/ufo/trunk/src/client/cl_sound.c:68: undefined reference to `Mix_FreeMusic'
debug-linux-gnu-i386/client/client/cl_sound.o: In function `S_Music_Start':
/home/xaver/Spiele/ufo/trunk/src/client/cl_sound.c:120: undefined reference to `Mix_LoadMUS_RW'
/home/xaver/Spiele/ufo/trunk/src/client/cl_sound.c:125: undefined reference to `Mix_PlayMusic'
debug-linux-gnu-i386/client/client/cl_sound.o: In function `S_Music_Play_f':
/home/xaver/Spiele/ufo/trunk/src/client/cl_sound.c:143: undefined reference to `Mix_PlayingMusic'
/home/xaver/Spiele/ufo/trunk/src/client/cl_sound.c:144: undefined reference to `Mix_FadeOutMusic'
debug-linux-gnu-i386/client/client/cl_sound.o: In function `S_LoadSound':
/home/xaver/Spiele/ufo/trunk/src/client/cl_sound.c:265: undefined reference to `Mix_LoadWAV_RW'
/home/xaver/Spiele/ufo/trunk/src/client/cl_sound.c:268: undefined reference to `Mix_LoadWAV_RW'
debug-linux-gnu-i386/client/client/cl_sound.o: In function `S_StartSound':
/home/xaver/Spiele/ufo/trunk/src/client/cl_sound.c:323: undefined reference to `Mix_PlayChannelTimed'
/home/xaver/Spiele/ufo/trunk/src/client/cl_sound.c:358: undefined reference to `Mix_VolumeChunk'
debug-linux-gnu-i386/client/client/cl_sound.o: In function `S_StopAllSounds':
/home/xaver/Spiele/ufo/trunk/src/client/cl_sound.c:389: undefined reference to `Mix_HaltChannel'
debug-linux-gnu-i386/client/client/cl_sound.o: In function `S_Frame':
/home/xaver/Spiele/ufo/trunk/src/client/cl_sound.c:430: undefined reference to `Mix_VolumeMusic'
/home/xaver/Spiele/ufo/trunk/src/client/cl_sound.c:434: undefined reference to `Mix_PlayingMusic'
debug-linux-gnu-i386/client/client/cl_sound.o: In function `SND_Init':
/home/xaver/Spiele/ufo/trunk/src/client/cl_sound.c:469: undefined reference to `Mix_OpenAudio'
/home/xaver/Spiele/ufo/trunk/src/client/cl_sound.c:474: undefined reference to `Mix_QuerySpec'
debug-linux-gnu-i386/client/client/cl_sound.o: In function `S_Shutdown':
/home/xaver/Spiele/ufo/trunk/src/client/cl_sound.c:530: undefined reference to `Mix_CloseAudio'
collect2: ld returned 1 exit status
I don't know if all of these are UFO issues as I just set up a new computer and still have problems e.g. with the sound card.
Add. Info:
AMD Athlon 64 X2
GeForce 8600GT
UFO Rev. 12199 & Beta installer from Sept. 28
OpenSuSE 10.2
Any ideas?