Author Topic: fs2 fails to run on funtoo linux [solved]  (Read 2461 times)

0 Members and 1 Guest are viewing this topic.

Offline Topgun

  • 210
fs2 fails to run on funtoo linux [solved]
attempting to run the executable directly or through the launcher results in this getting spewed out and the game not starting at all
Code: [Select]
AL lib: UpdateDeviceParams: Failed to set 44100hz, got 48000hz instead
Couldn't set video mode: X11 driver not configured with OpenGLERROR: "Unable to initialize display device!" at graphics/gropengl.cpp:1939
AL lib: ReleaseALC: 1 device not closed

I have an nvidia 680gtx with the binary nvidia drivers and I have opengl set to use the nvidia libgl.so. Other opengl games run fine.

Neither 3.612 or today's SVN work. No log file is created.
« Last Edit: October 08, 2012, 06:43:46 pm by Topgun »

 

Offline niffiwan

  • 211
  • Eluder Class
Re: fs2 fails to run on funtoo linux
Seems like FSO isn't detecting your video card.  What is the output from ldd?

Code: (sample ldd ouput) [Select]
$ ldd fs2_open_3.6.14
linux-vdso.so.1 =>  (0x00007fffe3fff000)
libSDL-1.2.so.0 => /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0 (0x00007f2132c1d000)
libvorbis.so.0 => /usr/lib/x86_64-linux-gnu/libvorbis.so.0 (0x00007f21329f1000)
libvorbisfile.so.3 => /usr/lib/x86_64-linux-gnu/libvorbisfile.so.3 (0x00007f21327e8000)
libtheora.so.0 => /usr/lib/x86_64-linux-gnu/libtheora.so.0 (0x00007f213259c000)
libogg.so.0 => /usr/lib/x86_64-linux-gnu/libogg.so.0 (0x00007f2132395000)
libopenal.so.1 => /usr/lib/x86_64-linux-gnu/libopenal.so.1 (0x00007f2132144000)
libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007f2131f1c000)
libGL.so.1 => /usr/lib/nvidia-current/libGL.so.1 (0x00007f2131bff000)
libGLU.so.1 => /usr/lib/x86_64-linux-gnu/libGLU.so.1 (0x00007f2131990000)
liblua5.1.so.0 => /usr/lib/x86_64-linux-gnu/liblua5.1.so.0 (0x00007f2131763000)
libjpeg.so.62 => /usr/lib/x86_64-linux-gnu/libjpeg.so.62 (0x00007f213153e000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f213123d000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f2130f43000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f2130d2d000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f213096f000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f2130752000)
libasound.so.2 => /usr/lib/x86_64-linux-gnu/libasound.so.2 (0x00007f2130465000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f2130260000)
libpulse-simple.so.0 => /usr/lib/x86_64-linux-gnu/libpulse-simple.so.0 (0x00007f213005c000)
libpulse.so.0 => /usr/lib/x86_64-linux-gnu/libpulse.so.0 (0x00007f212fe14000)
libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f212fadf000)
libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f212f8ce000)
libcaca.so.0 => /usr/lib/x86_64-linux-gnu/libcaca.so.0 (0x00007f212f603000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f212f3fa000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f212f1e3000)
libnvidia-tls.so.304.51 => /usr/lib/nvidia-current/tls/libnvidia-tls.so.304.51 (0x00007f212efe0000)
libnvidia-glcore.so.304.51 => /usr/lib/nvidia-current/libnvidia-glcore.so.304.51 (0x00007f212cbf5000)
/lib64/ld-linux-x86-64.so.2 (0x00007f2132ed6000)
libpulsecommon-1.1.so => /usr/lib/x86_64-linux-gnu/libpulsecommon-1.1.so (0x00007f212c997000)
libjson.so.0 => /usr/lib/x86_64-linux-gnu/libjson.so.0 (0x00007f212c78e000)
libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f212c54a000)
libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f212c32c000)
libslang.so.2 => /lib/x86_64-linux-gnu/libslang.so.2 (0x00007f212bfba000)
libncursesw.so.5 => /lib/x86_64-linux-gnu/libncursesw.so.5 (0x00007f212bd8d000)
libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007f212bb66000)
libwrap.so.0 => /lib/x86_64-linux-gnu/libwrap.so.0 (0x00007f212b95c000)
libsndfile.so.1 => /usr/lib/x86_64-linux-gnu/libsndfile.so.1 (0x00007f212b6f5000)
libasyncns.so.0 => /usr/lib/x86_64-linux-gnu/libasyncns.so.0 (0x00007f212b4ef000)
libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f212b2eb000)
libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f212b0e5000)
libnsl.so.1 => /lib/x86_64-linux-gnu/libnsl.so.1 (0x00007f212aecb000)
libFLAC.so.8 => /usr/lib/x86_64-linux-gnu/libFLAC.so.8 (0x00007f212ac80000)
libvorbisenc.so.2 => /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2 (0x00007f212a7b1000)
libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f212a595000)

I've seen this error when I used to install the nvidia binary drivers manually, and I updated my kernel and didn't reinstall the drivers. Or I can see this if I update my drivers and I don't reboot.  But - if it's working for other OpenGL games, this probably isn't the issue.
Creating a fs2_open.log | Red Alert Bug = Hex Edit | MediaVPs 2014: Bigger HUD gauges | 32bit libs for 64bit Ubuntu
----
Debian Packages (testing/unstable): Freespace2 | wxLauncher
----
m|m: I think I'm suffering from Stockholm syndrome. Bmpman is starting to make sense and it's actually written reasonably well...

 

Offline Topgun

  • 210
Re: fs2 fails to run on funtoo linux
Code: [Select]
linux-vdso.so.1 (0x00007fffd73ee000)
libSDL-1.2.so.0 => /usr/lib64/libSDL-1.2.so.0 (0x00007f56c8720000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f56c8503000)
libvorbis.so.0 => /usr/lib64/libvorbis.so.0 (0x00007f56c82d6000)
libvorbisfile.so.3 => /usr/lib64/libvorbisfile.so.3 (0x00007f56c80cd000)
libtheora.so.0 => /usr/lib64/libtheora.so.0 (0x00007f56c7e99000)
libogg.so.0 => /usr/lib64/libogg.so.0 (0x00007f56c7c92000)
libopenal.so.1 => /usr/lib64/libopenal.so.1 (0x00007f56c7a41000)
libpng15.so.15 => /usr/lib64/libpng15.so.15 (0x00007f56c7814000)
libGL.so.1 => /usr/lib64/opengl/nvidia/lib/libGL.so.1 (0x00007f56c74f7000)
libGLU.so.1 => /usr/lib64/libGLU.so.1 (0x00007f56c7289000)
liblua.so.5 => /usr/lib64/liblua.so.5 (0x00007f56c705c000)
libm.so.6 => /lib64/libm.so.6 (0x00007f56c6d6e000)
libjpeg.so.8 => /usr/lib64/libjpeg.so.8 (0x00007f56c6b1d000)
libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/libstdc++.so.6 (0x00007f56c6818000)
libgcc_s.so.1 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/libgcc_s.so.1 (0x00007f56c6602000)
libc.so.6 => /lib64/libc.so.6 (0x00007f56c625c000)
libasound.so.2 => /usr/lib64/libasound.so.2 (0x00007f56c5f7d000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f56c5d79000)
/lib64/ld-linux-x86-64.so.2 (0x00007f56c897c000)
librt.so.1 => /lib64/librt.so.1 (0x00007f56c5b70000)
libz.so.1 => /lib64/libz.so.1 (0x00007f56c595a000)
libnvidia-tls.so.304.51 => /usr/lib64/opengl/nvidia/lib/libnvidia-tls.so.304.51 (0x00007f56c5757000)
libnvidia-glcore.so.304.51 => /usr/lib64/libnvidia-glcore.so.304.51 (0x00007f56c336d000)
libX11.so.6 => /usr/lib64/libX11.so.6 (0x00007f56c3031000)
libXext.so.6 => /usr/lib64/libXext.so.6 (0x00007f56c2e1f000)
libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x00007f56c2bfd000)
libXau.so.6 => /usr/lib64/libXau.so.6 (0x00007f56c29f9000)
libXdmcp.so.6 => /usr/lib64/libXdmcp.so.6 (0x00007f56c27f3000)

 

Offline niffiwan

  • 211
  • Eluder Class
Re: fs2 fails to run on funtoo linux
I was hoping for a missing library... but you seem to have then all and that leaves me a bit puzzled :)  So....

1) What do glxgears and glxinfo give you? 
2) Can you confirm that you've run a debug version and there's no fs2_open.log in ~/.fs2_open/data? 
3) Have you run FSO successfully on this PC/OS before?
Creating a fs2_open.log | Red Alert Bug = Hex Edit | MediaVPs 2014: Bigger HUD gauges | 32bit libs for 64bit Ubuntu
----
Debian Packages (testing/unstable): Freespace2 | wxLauncher
----
m|m: I think I'm suffering from Stockholm syndrome. Bmpman is starting to make sense and it's actually written reasonably well...

 

Offline Topgun

  • 210
Re: fs2 fails to run on funtoo linux
glxgears runs fine.

glxinfo is attached.

no log file is created in ~./fs2_open/data.

I have run FSO on this computer before, but I have reinstalled since then.

[attachment deleted by a basterd]

 

Offline niffiwan

  • 211
  • Eluder Class
Re: fs2 fails to run on funtoo linux
OK - that all looks fine.  What about the contents of cmdline_fso.cfg?  Do you have one in either <fso_install>/data/ or ~/.fs2_open/data/? 
Creating a fs2_open.log | Red Alert Bug = Hex Edit | MediaVPs 2014: Bigger HUD gauges | 32bit libs for 64bit Ubuntu
----
Debian Packages (testing/unstable): Freespace2 | wxLauncher
----
m|m: I think I'm suffering from Stockholm syndrome. Bmpman is starting to make sense and it's actually written reasonably well...

 

Offline Topgun

  • 210
Re: fs2 fails to run on funtoo linux
OK - that all looks fine.  What about the contents of cmdline_fso.cfg?  Do you have one in either <fso_install>/data/ or ~/.fs2_open/data/? 

-mod mediavps_3612 -nomotiondebris -noscalevid -missile_lighting -3dshockwave -post_process -soft_particles -fxaa -no_vsync -dualscanlines -targetinfo -orbradar -rearm_timer -ballistic_gauge -ship_choice_3d -weapon_choice_3d -3dwarp -warp_flash

 

Offline niffiwan

  • 211
  • Eluder Class
Re: fs2 fails to run on funtoo linux
Thanks - that looks good too.  And now, what about ~/.fs2_open/fs2_open.ini?  (I should have asked for this one as well in my previous reply :))
Creating a fs2_open.log | Red Alert Bug = Hex Edit | MediaVPs 2014: Bigger HUD gauges | 32bit libs for 64bit Ubuntu
----
Debian Packages (testing/unstable): Freespace2 | wxLauncher
----
m|m: I think I'm suffering from Stockholm syndrome. Bmpman is starting to make sense and it's actually written reasonably well...

 

Offline Topgun

  • 210
Re: fs2 fails to run on funtoo linux
[Default]
VideocardFs2open=OGL -(1920x1080)x32 bit
TextureFilter=1
OGL_AnisotropicFilter=16
OGL_AntiAliasSamples=16
SoundDeviceOAL=ALSA Default
CurrentJoystick=0
EnableJoystickFF=0
EnableHitEffect=0
NetworkConnection=None
ConnectionSpeed=None
[Sound]
PlaybackDevice=ALSA Default
CaptureDevice=ALSA Default

 

Offline Topgun

  • 210
Re: fs2 fails to run on funtoo linux
After some digging I found the problem. for some reason my libsdl was compiled without opengl support. games that didn't use sdl worked fine, but freespace didn't.

adding

>=media-libs/libsdl-1.2.15-r2 opengl

to /etc/portage/package.use

and recompiling libsdl fixed the issue. thanks for the help.

 

Offline niffiwan

  • 211
  • Eluder Class
Re: fs2 fails to run on funtoo linux [solved]
good news! Glad you found the problem, I don't think I would have thought of that issue! :)
Creating a fs2_open.log | Red Alert Bug = Hex Edit | MediaVPs 2014: Bigger HUD gauges | 32bit libs for 64bit Ubuntu
----
Debian Packages (testing/unstable): Freespace2 | wxLauncher
----
m|m: I think I'm suffering from Stockholm syndrome. Bmpman is starting to make sense and it's actually written reasonably well...