Page 1 of 1

SDL failed to initialize the video subsystem.

Posted: 7. Dec 2012, 14:01
by Jonny
I have installed OpenBVE (http://odakyufan.zxq.net/openbve/index.html) and its dependancies (mono, SDL, OpenAL).
When I execute it, it starts fine, but selecting a route and train then starting the simulation gives me the error:

Code: Select all

SDL failed to initialize the video subsystem.
I tried updating to the newest SDL but no lock.

Running Salix XFCE 14.0 on a 32bit i686.

Do I need to provide any further information for you guys?

Does anyone have any ideas? Thanks in advance for any assistance.

Re: SDL failed to initialize the video subsystem.

Posted: 7. Dec 2012, 17:23
by gapan
How are you starting it?

Unless this is a bug with the software that you're trying to run itself, try running it from the command line, while setting the SDL_VIDEODRIVER variable, like this:

Code: Select all

SDL_VIDEODRIVER=x11 yourappname
You can find a list of all available SDL video drivers here:
http://www.libsdl.org/cgi/docwiki.cgi/SDL_envvars

You could also try some other SDL app/game, like ltris, just to check if it works properly. If it does, it's probably something specific to your app.

Re: SDL failed to initialize the video subsystem.

Posted: 7. Dec 2012, 22:31
by Jonny
Thank you very much gapan, I shall try your advice when I get back to the computer.
I am currently running the application from the command-line thus:

Code: Select all

mono /opt/openbve/OpenBVE.exe
Is it possible to chain multiple commands like this:

Code: Select all

SDL_VIDEODRIVER=x11 mono /opt/openbve/OpenBVE.exe
Or do I need to join multiple commands with a separator character?

Re: SDL failed to initialize the video subsystem.

Posted: 8. Dec 2012, 12:45
by gapan
Yes, it's possible.

Re: SDL failed to initialize the video subsystem.

Posted: 10. Dec 2012, 10:57
by Jonny
Thanks again gapan. Your comments helped to point me in the right direction and after recompiling dependencies and the application, I managed to get it to work.