Problem with SDL-1.0.8

Hello,

I'm having problems with SDL 1.0.8. The tests don't work

and it is displayed a message saying that there is not a display device
and i have opened X-windows.

I'm ver lost and tired at this moment (lot of hours working)

and i don’t want to think where is the problem. I have SuSe 6.2
Can anybody help me?

Than you very much...

Javier Martinez Villacampa
@d960009

Hello,

I’m having problems with SDL 1.0.8. The tests don’t work
and it is displayed a message saying that there is not a display device
and i have opened X-windows.

This is in the FAQ:

Q: I get the error: “no video devices available”

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

See ya,
-Sam Lantinga (slouken at devolution.com)

Lead Programmer, Loki Entertainment SoftwareA: SDL doesn’t use the X11 video driver if it can’t open the X display,

“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

Hello,
I’m having problems with SDL 1.0.8. The tests don’t work
and it is displayed a message saying that there is not a display device
and i have opened X-windows.

It sounds like you are running the tests as a different user than the one
who is running the X server. For example, if you compiled and installed
them as root, you’ll want to turn around and run them as the user that
logged into X (pop up a new terminal window and run them).

You can get around this by using the xhost command, but if you are on the
network and/or have multiple users on the system, it is a security risk
(one example is it can allow others to see everything you type… like
passwords).–
Brian

X-News: zipi.fi.upm.es loki.open-source.sdl:3531>From:

Subject: Re: problem with SDL-1.0.8
Date: 13 Mar 2000 10:12:20 -0800
Message-ID: <Pine.LNX.4.10.10003131208040.10718-100000 at lotus.slothmud.org>

Hello,
I’m having problems with SDL 1.0.8. The tests don’t work
and it is displayed a message saying that there is not a display device
and i have opened X-windows.

It sounds like you are running the tests as a different user than the one
who is running the X server. For example, if you compiled and installed
them as root, you’ll want to turn around and run them as the user that
logged into X (pop up a new terminal window and run them).

You can get around this by using the xhost command, but if you are on the
network and/or have multiple users on the system, it is a security risk
(one example is it can allow others to see everything you type… like
passwords).


Brian

First of all, thanks for the help, Sam and you.
But i have to say that it was a stupid thing. I didn't installed

the Xlib headers. I compile all the library without them so that was the
problem.

Sorry for disturbing you with so silly question, but it was a very

tiring week.

Javier Martinez Villacampa
@d960009