SDL error

All development conversation and discussion takes place here

Moderator: Moderator

Post Reply
Message
Author
madmonk
Reaper
Posts: 2257
Joined: Wed Dec 12, 2007 12:21 am
Location: New Zealand

SDL error

#1 Post 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!
Regards

Jon.

madmonk
Reaper
Posts: 2257
Joined: Wed Dec 12, 2007 12:21 am
Location: New Zealand

Re: SDL error

#2 Post by madmonk »

Fixed!
Regards

Jon.

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: SDL error

#3 Post by darkgod »

How?
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

madmonk
Reaper
Posts: 2257
Joined: Wed Dec 12, 2007 12:21 am
Location: New Zealand

Re: SDL error

#4 Post by madmonk »

Changed the display from GDM display manager to the XDM display manager and back again...

I am now running again!
Regards

Jon.

Post Reply