readthefuckingmanual.net

[SOLVED] Could not initialize SDL library: No available video device

Error added: 2007-05-21T02:33:19Z

2 people waiting for the answer...

2 answers found.

Answer 2020 (50.0% helpful)

put DISPLAY variable in command terminal as: 

'DISPLAY=localhost:10.0; export DISPLAY'

-- It will work, or you can also install xmanager to solve this problem.
Permalink

Answer 318 (16.666666% helpful)

Q:	I get the error: \"no video devices available\"
A:	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
csh: setenv DISPLAY :0
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.
Permalink

Add an answer/solution

If you know the answer, please add your own solution below.
If you don't know, but find out later, please come back and share your answer - there will be other people struggling with this too.


Please enter 61948 here

If you want to be notified via email when this is solved, enter your email address here: