I am porting a DOS graphics application to Linux. I’d like to try
SDL but have run into a snag. I’ve successfully downloaded it,
installed it and compiled one of the test programs, namely
testkeys.c. But when I run it, SDL_Init returns me this message:
Couldn’t initialize SDL: No available video device. The Linux
SDL FAQ says that in that situation I should set the DISPLAY
environment variable to DISPLAY=:0. I tried this. No help
there. The FAQ also tells me to try xhost +localhost. xhost
just returns the message: Can’t open display :0 (or whatever I’ve
set the DISPLAY environment variable to. I’ve tried :0, 0, x11,
fbcon, etc. Just shooting in the dark here.)
The General SDL FAQ tells me to set the environment variable
SDL_VIDEODRIVER=x, where x is x11 or fbcon or svgalib or ggi or
aalib. I have tried these. No luck. I have svgalib installed
and I assume that I have x11, since I can run KDE and GNOME
without problems. What am I not understanding?
Please explain. I am new to Linux, so please do not assume that
I know anything. Oh, and by the way, when I set environment
variables, they stay set only during the current login session.
Next time I log in they are gone from the list returned by the
set command.
Bob–
-
*
-
See algorithmic imagery at: *
- http://users.migate.net/~bobbrill *
-
*