No video device available - many little problems

I recently started a course at University, and have a Linux machine to
play with. However, I’m very much unused to running Linux without root
priveleges.

I’ve figured out thanks to previous posts how to compile SDL and
install it without requiring root priveleges, but I’m getting the error
"couldn’t intialise SDL: No available video device"

I understand (form the FAQ) that this is because I don’t have the X11
development libraries installed.

Now, I realise that until I can find a worthwhile reason for it, my
network administrator isn’t going to install them for me. So my
question is - where can I get these “X11 development libraries” from,
and how can I install them without root priveleges?

Googling for “X11 development libraries” doesn’t help much, as it finds
packages relating to developing on X11, e.g. SDL! I found some
packages that loked promising, but there were 2 problems.

  1. I don’t know what version of X I’m using, and don’t know how to
    find out

  2. I’ve only found .rpm files so far, which I believe cannot be
    installed without being root - though I may be wrong here!

Thanks for any help with any of the above issues

PS I don’t think this OT as I need to know what X11 stuff I need
specifically to compile SDL, but if you think this is OT I’m sorry.________________________________________________________________________
Want to chat instantly with your online friends? Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk

Actually, it sounds like you’re trying to use the DGA driver while running as
a user other than root.

Open a terminal and type:

echo $SDL_VIDEODRIVER

If it’s “dga” then try

export SDL_VIDEODRIVER=x11

and see if that makes things work.

-Sean RidenourOn Tuesday 14 October 2003 10:59 am, Paul Smith wrote:

I recently started a course at University, and have a Linux machine to
play with. However, I’m very much unused to running Linux without root
priveleges.

I’ve figured out thanks to previous posts how to compile SDL and
install it without requiring root priveleges, but I’m getting the error
"couldn’t intialise SDL: No available video device"

I understand (form the FAQ) that this is because I don’t have the X11
development libraries installed.

No, I really do have SDL_VIDEODRIVER=x11. I’m pretty sure I’m missing
the development libs because I’m compiling from source, and during the
./configure stage I get

checking for X… No

However, I just noticed that the ./configure script also says I
apparently have framebuffer console support, I’ll try the backend for
that.

Thanks for your help though!

— Sean Ridenour <s_ridenour at kewlpc.org> wrote:> On Tuesday 14 October 2003 10:59 am, Paul Smith wrote:

I recently started a course at University, and have a Linux machine
to
play with. However, I’m very much unused to running Linux without
root
priveleges.

I’ve figured out thanks to previous posts how to compile SDL and
install it without requiring root priveleges, but I’m getting the
error
"couldn’t intialise SDL: No available video device"

I understand (form the FAQ) that this is because I don’t have the
X11
development libraries installed.

Actually, it sounds like you’re trying to use the DGA driver while
running as
a user other than root.

Open a terminal and type:

echo $SDL_VIDEODRIVER

If it’s “dga” then try

export SDL_VIDEODRIVER=x11

and see if that makes things work.

-Sean Ridenour


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com