SDL failed to initialize the video subsystem.

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
Jonny
Posts: 8
Joined: 6. Nov 2012, 13:28

SDL failed to initialize the video subsystem.

Post 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.
User avatar
gapan
Salix Wizard
Posts: 6366
Joined: 6. Jun 2009, 17:40

Re: SDL failed to initialize the video subsystem.

Post 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.
Image
Image
Jonny
Posts: 8
Joined: 6. Nov 2012, 13:28

Re: SDL failed to initialize the video subsystem.

Post 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?
User avatar
gapan
Salix Wizard
Posts: 6366
Joined: 6. Jun 2009, 17:40

Re: SDL failed to initialize the video subsystem.

Post by gapan »

Yes, it's possible.
Image
Image
Jonny
Posts: 8
Joined: 6. Nov 2012, 13:28

Re: SDL failed to initialize the video subsystem.

Post 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.
Post Reply