Page 1 of 1

SDL error

Posted: Wed Feb 17, 2010 4:30 am
by madmonk
Hi

My graphics card died over the weekend, and my PC also decided to die at the same time. I have rebuilt it, but I am using a different graphics card... I am using Mandriva 2010.

So I get an SDL error when launching t4 and STDout has this:
cannot initialize SDL: No available video device
So googling this I get the following:
SDL doesn't use the X11 video driver if it can't open the X display, and if no other drivers are available, it will report this error.

To fix this, set your display environment variable appropriately:
sh: DISPLAY=:0 ; export DISPLAY

If you still have problems, try running xhost + localhost

Finally, if all those didn't work, and you built SDL from source, make sure that you have the X11 development libraries installed, otherwise you'll get a version of SDL that doesn't include X11 display support. After you install the X development libraries, you need to "make clean" and then rerun the configure and build process.
Done all of the above, I suspect I need to change some config file somewhere but have no idea where! I have not done the X11 recompile, since it was working before!

Any assistance gratefully appreciated!

Re: SDL error

Posted: Thu Feb 18, 2010 4:16 am
by madmonk
Fixed!

Re: SDL error

Posted: Thu Feb 18, 2010 7:30 am
by darkgod
How?

Re: SDL error

Posted: Thu Feb 18, 2010 9:18 am
by madmonk
Changed the display from GDM display manager to the XDM display manager and back again...

I am now running again!