Problem for "unable to init SDL: No avai lable video device"

Hi all
When I run my first SDL example on my Gentoo linux system. I got this messages “unable to init SDL: No available video device”.
I have done the ./configure , make , make install.
After used Google to search the error for more information. Somebody have meet same problem. Others suggested using
"export SDL_VIDEODRIVER=“x11”
./yourprogram
echo $SDL_VIDEODRIVER"
to solve this problem. Before export SDL_VIDEODRIVER = x11, I run “echo $SDL_VIDEODRIVER”, there is only one empty line shown. Then I try the solution, but it did not work still. Because I did not installed X. So the value “x11” is useless.
Somebody could tell me how to solve this problem? Or is SDL must run on the X?

Thanks a lot!

startx first----------------------------------------------------
Morska ?aba zabierze Ci? w muzyczno-magiczn? podr?? po ?wiecie.
11 i 12 sierpnia 2006! Wejd? na WWW.Frog.Gdynia.PL i przyjed? na
I Festiwal Rytmu i Ognia - FROG 2006 w Gdyni.
http://klik.wp.pl/?adr=http%3A%2F%2Fadv.reklama.wp.pl%2Fas%2Fzaba.html&sid=838

Yeah, naturally, you won’t have the X11 backend if you don’t even have
X11 (ie. xorg) installed. Seriously, if you’re doing some multimedia
programming you should have xorg installed. SDL has some other video
backends (kernel framebuffer, svgalib, etc.) but they’re definitely
not what the majority of people use.

And BTW the latest version of SDL is in Portage so you don’t need to
build it yourself. A simple “emerge libsdl” would suffice. It will
take care of dependencies too…On 8/8/06, tsaoyi_sdl <tsaoyi_sdl at 163.com> wrote:

Hi all
When I run my first SDL example on my Gentoo linux system. I got this
messages “unable to init SDL: No available video device”.
I have done the ./configure , make , make install.
After used Google to search the error for more information. Somebody
have meet same problem. Others suggested using
"export SDL_VIDEODRIVER=“x11”
./yourprogram
echo $SDL_VIDEODRIVER"
to solve this problem. Before export SDL_VIDEODRIVER = x11, I run “echo
$SDL_VIDEODRIVER”, there is only one empty line shown. Then I try the
solution, but it did not work still. Because I did not installed X. So the
value “x11” is useless.
Somebody could tell me how to solve this problem? Or is SDL must run on
the X?

Thanks a lot!

  • SR