I downloaded the OpenGL demos at the SDL web site
(http://www.libsdl.org/opengl/intro.html), and successfully compiled
them. When I ran them, however, each one openned a window and displayed
static. After a while of trying each one, they all simply made a window
with a black screen. Some of them segfualt on run (such as lesson 10,
i have also recently started with SDL/OpenGL (in the last 3/4 months or
starting with the obvious: try moving your mouse onto the window and try
and activate it, as these tutorials don’t draw anything unless they have
the focus. did you run it from a terminal? sometimes the tutorials don’t
work for me unless they’re from a terminal.
make and run the testgl and testwin programs that come with SDL.
is the current directory correct (for the textures, etc if there are
any)? if you start getting in deep, a good start to finding out what’s
wrong is littering the program with
printf("test point whatever\n");
and then compiling it again. you can they trace up to which point the
program executed and what happened.
which wm/desktop environment are you using? try at least KDE and GNOME
as well, if you’re not in them. could be a problem with the window
I’m running Debian GNU/Linux (Woody) with Xfree86 4.1, 2.4.9 kernel,
nVidia’s kernel and GLX drivers. I obviously have libSDL installed as it
is compiling. Quake III, Tux Racer, and GLTron all work beautifully.
Tux Racer actually uses SDL, i think. try running tuxracer from the
console and seeing what output you get and if this is helpful.
hope this is of some help to you. :o)
-billOn Sun, 11 Nov 2001, Aaron Traas wrote: