Could not initialize SDL Video subsystem:
I'm not sure what I'm missing or if there is a bug in unstable..
Several of my games will no longer run since my last update (such as bzflag) when I attempt to launch them from the command line I get the following error Quote:
sdl is installed, as are my nvidia graphics drivers.. Code:
default@debian:~$ aptitude search sdl | grep -F 'i ' Code:
debian:/var/log# cat Xorg.0.log | grep WW Code:
default@debian:~$ lsmod | grep nvidia Code:
debian:~# apt-cache policy nvidia-glx Code:
debian:~# slocate libSDL-1.2.so.0 Any pointers would be appreciated.. |
The SDL homepage: http://www.libsdl.org/ Includes some tuts, docs and other interesting stuff
Article on SDL in Linux Journal The error is in your first codesnippit: "No available video device". That means that SDL is installed and configured, but it's default link to video devices doesn't match those on your system. Figure out where these devices are on your system, where SDL expects them (docs!) and if possible, sym-link these locations. Otherwise, recompile SDL using the device nodes your system uses for video devices. No, I won't rant about why Unstable is named Unstable :p |
Quote:
Ugh some new bug listings that weren't there when I updated... (at least I don't recall seeing them at the time.. ) Code:
grave bugs of nvidia-kernel-source (100.14.11-1 -> 100.14.11-1) <pending> Maybe I'll just boot back to 2.6.18 for the time being. |
SDL will try to detect automatically the best video driver for you and can fail sometimes if that one doesn't work.
You can force some other mode. E.g., the following should always work: Code:
SDL_VIDEODRIVER=x11 bzflag |
Here is a full list:
http://www.libsdl.org/cgi/docwiki.cgi/SDL_envvars Can you respond which of these worked for you? (I am one of the developers of the game OpenLieroX which also uses SDL; and we could builtin some fallbacks if the default video mode doesn't work.) |
Although the question is now nearly 2 yrs old and not even mine, you may want to check the video driver designated in xorg.conf to use as default. That way you know the driver is present and at a pre-defined location (provided the user did a standard install).
|
Wow. It's been so long I don't even recall how this got worked out. Probably was a bug I suffered from for a limited time between updates.
I've certainly played enough bzflag in the last two years, to know it's been addressed. OpenLieroX - Worms like clone (sorta).. Looks interesting ,I see it's not in the Debian repositories, but there is a .deb available for Download.. I'll have to take a look :) |
An SDL mailinglist user refered to this problem here, that's why I thought I'll post a possibility here. I didn't really noticed that it is that old. :) Anyway, perhaps it helps some other Google-user who stumbles to this entry.
|
I have this same problem! (but for luvcview, which uses SDL)
it tells me this: Couldnt initialize SDL: No available video device when i try to start it up. i have no idea what to do here, i am still a linux novice. any ideas? thanks! |
Quote:
Esp, take a look here: http://www.libsdl.org/cgi/docwiki.cgi/SDL_envvars And try to specify some environment variables. Most important for you (for this problem) is SDL_VIDEODRIVER. If you set it to x11, it should always work. |
All times are GMT -5. The time now is 02:09 PM. |