The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Using SDL without X - Linux gurus help
Raj Prasan
Guest

Hello everyone,

I installed Redhat enterprise Linux 4 (Its way too old version) without
XWindows support, KDE, Gnome or any desktop support at all.

Even when I log in I see only a xclock app and a terminal (which I found is
an emulator of VT100 terminal or something). I figured it out from an error
message.

So I am used to logging it in pseudoterminals only. Pure console after
pressing ALT+CTRL+F<1 to 6>
I downloaded SDL rpm package and It did not install as some dependencies
were missing.

So I compiled from source and *"make install" *did the job.
When I tried to run sample, it said no video device error

Can't SDL do something so that I can make a game, that doesn't depend on X
Windows or any other desktop ?

Moreover I am not able to run many RPMs as its an old version I think. Only
old versions of development packages are available with it. I don't have an
Internet Connection in that PC. But I can download else where...

Can someone point me to download location of latest development libraries
all in one package. So that no RPM's basic dependency fails. I know some
times you need to install dependency first and then install the rpm. I am
talking about the basic set of packages.

--
With best Regards
Rajavanya S

Twitter me @ https://twitter.com/quakeboy
I Blog @ http://www.techtola.com
Call me @ 9916-90-93-92
----------------------------------------------------------------------------------------------
"True love is knowing a person's faults, And loving them even more for
them."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20090131/98217fce/attachment-0001.htm>
Using SDL without X - Linux gurus help
mattmatteh at mac.com
Guest

perhaps try to install a newer version of redhat or any other distro of
gnu/linux ?

(after answering this email, i suggest a new version of redhat or ubuntu)

On Sat, 31 Jan 2009, Raj Prasan wrote:

Quote:
Hello everyone,

I installed Redhat enterprise Linux 4 (Its way too old version) without
XWindows support, KDE, Gnome or any desktop support at all.

then install a desktop or window manager

Quote:
Even when I log in I see only a xclock app and a terminal (which I found is
an emulator of VT100 terminal or something). I figured it out from an error
message.
So I am used to logging it in pseudoterminals only. Pure console after
pressing ALT+CTRL+F<1 to 6>
I downloaded SDL rpm package and It did not install as some dependencies
were missing.

rmp hell :(

Quote:
So I compiled from source and *"make install" *did the job.
When I tried to run sample, it said no video device error

didi you try to run while in X ?

Quote:
Can't SDL do something so that I can make a game, that doesn't depend on X
Windows or any other desktop ?

non graphical game ?

there is framebuffer support i think, but i dont use it.

Quote:
Moreover I am not able to run many RPMs as its an old version I think. Only
old versions of development packages are available with it. I don't have an
Internet Connection in that PC. But I can download else where...

Can someone point me to download location of latest development libraries
all in one package. So that no RPM's basic dependency fails. I know some
times you need to install dependency first and then install the rpm. I am
talking about the basic set of packages.

--
With best Regards
Rajavanya S

Twitter me @ https://twitter.com/quakeboy
I Blog @ http://www.techtola.com
Call me @ 9916-90-93-92
----------------------------------------------------------------------------------------------
"True love is knowing a person's faults, And loving them even more for
them."
Using SDL without X - Linux gurus help
Pierre Phaneuf
Guest

On Sat, Jan 31, 2009 at 6:24 AM, Raj Prasan <prasna991 at gmail.com> wrote:

Quote:
I installed Redhat enterprise Linux 4 (Its way too old version) without
XWindows support, KDE, Gnome or any desktop support at all.

Even when I log in I see only a xclock app and a terminal (which I found is
an emulator of VT100 terminal or something). I figured it out from an error
message.

RHEL4 isn't that old, only a bit more than 3 years old... X should
definitely work, although I wouldn't bet on getting OpenGL enabled,
though. And from what you describe, you actually have X Window
support, you just do not have KDE or GNOME. Seeing the xclock and
xterm at all means that you have the X server going and there's some
kind of ultra-minimal session script going on to start them up.

Try right-clicking on the background, a lot of older window manager
operated like that.

Quote:
So I am used to logging it in pseudoterminals only. Pure console after
pressing ALT+CTRL+F<1 to 6>
I downloaded SDL rpm package and It did not install as some dependencies
were missing.

So I compiled from source and "make install" did the job.
When I tried to run sample, it said no video device error

If you Ctrl-F7 (or maybe a higher one), and try to run it from that
xterm you saw, it will probably work just fine. Or if you run "export
DISPLAY=:0" before running the sample, which will tell it to use the
first X server that is running in console 7 (or higher).

Quote:
Can't SDL do something so that I can make a game, that doesn't depend on X
Windows or any other desktop ?

It's possible, but rather involved. You have to understand that the "X
Window System" (also known as X11) doesn't really provide a desktop,
it's more like the video card drivers, and doing anything without
those is very difficult (but yes, possible, just like in the old DOS
days without Windows). KDE and GNOME use X11, but before those
existed, there were simpler desktop environments, and it seems that
it's what you have there.

On that kind of old distribution, you might be able to get Svgalib
going, but that was already old in 2005, so I'm not sure. Maybe more
DirectFB or something that uses the framebuffer directly (assuming
your kernel has framebuffer support compiled in, might require a
kernel recompile to get it working)...

Quote:
Moreover I am not able to run many RPMs as its an old version I think. Only
old versions of development packages are available with it. I don't have an
Internet Connection in that PC. But I can download else where...

Any particular reason to be using such an old distribution? You want
to make binaries that will work *everywhere*? An old Debian might be
more appropriate and easier (you can use debootstrap to put it inside
of a more modern system), if that's what you're after...

--
http://pphaneuf.livejournal.com/
Using SDL without X - Linux gurus help
Sam Lantinga
Guest

Quote:
So I compiled from source and *"make install" *did the job.
When I tried to run sample, it said no video device error

It should have built with framebuffer console support, but you might need
to be root to be able to use it.

See ya!
-Sam Lantinga, Founder and President, Galaxy Gameworks LLC