I had this happen to me and the problem was really
It ended up that I had some old mesa symlinks which
didn’t get removed when mesa did, and didn’t get
updated when I installed the nvidia DRI drivers. The
GLX demos worked fine (such as glxgear) but none of my
SDL+GL programs did. I fixed the problem by updating
the old symlinks to the new nvidia path.
Oddly, even though the symlinks were to nonexistant
libraries, the program still ran, just with a black
They were in some weird directory too… a few weird
directories no less.
My suggestion: as root:
updatedb (may take awhile)
locate libgl.so (possibly write to a file)
This occured on RH9, FYI.
And the whole thing on the MS VC++ 7… ew… yeah,
their compiler is whacky like that.
Hope this is the same problem you experienced and that
it fixes the problem for you :-).
— Jeff Jackowski wrote:> I’ve been trying to demonstrate some cross platform
programming with a
vertex shader demo thing using SDL and OpenGL. It
works fine on Windows,
but has only a blank window on Linux. The same
happens with the OpenGL
demo in the SDL docs. I’ve tried on two Linux
systems, Redhat 8 and 9.
Both can run Tux Racer and BZFlag, so it seems
I’d appreciate any hints that anyone might have to
help send me in the
right direction to fix the problem.
BTW: I had to modify the SDL 1.2.7 source to get it
to link with anything
on Windows using MS VC++ v7. Some wackyness with
main() resulted in
undefined symbols. I did not use the modified SDL
source on Linux.
SDL mailing list
SDL at libsdl.org
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway