SDL-1.1+OpenGL

Hi!

I have a problem using OpenGL with SDL 1.1 under Linux. I have installed
the Mesa3.1 libs, tried the demos and everything worked perfectly. But
if I compile the gltest demo of SDL and run it, it says that the x11
driver is not configured for OpenGL. I have defined HAVE_OPENGL but it
doesnt change anything. This is probably a newbie question, but anyway I
played around for a while ( recompiled the SDL source with -DHAVE_OPENGL
and used the new libs etc…), but it still doesn’t work. So if someone
could please tell me a potential cause I’d be very grateful!

thx!

Martin

hi`

do other GL apps like glinfo work?

Martin Kremecek wrote:>

Hi!

I have a problem using OpenGL with SDL 1.1 under Linux. I have installed
the Mesa3.1 libs, tried the demos and everything worked perfectly. But
if I compile the gltest demo of SDL and run it, it says that the x11
driver is not configured for OpenGL. I have defined HAVE_OPENGL but it
doesnt change anything. This is probably a newbie question, but anyway I
played around for a while ( recompiled the SDL source with -DHAVE_OPENGL
and used the new libs etc…), but it still doesn’t work. So if someone
could please tell me a potential cause I’d be very grateful!

thx!

Martin


Daniel Vogel My opinions may have changed,
666 @ http://grafzahl.de but not the fact that I am right

Hi!

I have a problem using OpenGL with SDL 1.1 under Linux. I have installed
the Mesa3.1 libs, tried the demos and everything worked perfectly. But
if I compile the gltest demo of SDL and run it, it says that the x11
driver is not configured for OpenGL. I have defined HAVE_OPENGL but it
doesnt change anything. This is probably a newbie question, but anyway I
played around for a while ( recompiled the SDL source with -DHAVE_OPENGL
and used the new libs etc…), but it still doesn’t work. So if someone
could please tell me a potential cause I’d be very grateful!

Hmm. Did you alias your libraries so that in /usr/lib (I think!) you have:

libGL.so.1.0.2 (or whatever it is)
and libGLU.so.1.0.2?

Mesa links to libMesaGL, so the test programs will work. SDL looks for libGL,
the standard name for the GL library. Have a gander through README.X11,
included in your Mesa 3.1 distribution, for hints on how to properly create
symbolic links.

If this doesn’t fix the problem, post back again and we can have another whack
at it.

Martin

Nicholas

Daniel Vogel wrote:

do other GL apps like glinfo work?

ups, sorry didn’t read your email thoroughly.

and used the new libs etc…), but it still doesn’t work. So if someone
could please tell me a potential cause I’d be very grateful!

Okay, what does locate SDL tell you? Maybe you have some older version
of SDL installed somewhere that defaults to not use OpenGL. Btw, the
configure option is --enable-video-opengl and defaults to true. If you
compile with -DHAVE_OPENGL it shouldn’t write “X11 driver not configured
with OpenGL” as the code isn’t compiled in. Well, so I guess you have
several versions of SDL lying around.–
Daniel Vogel My opinions may have changed,
666 @ http://grafzahl.de but not the fact that I am right

I have a problem using OpenGL with SDL 1.1 under Linux. I have installed
the Mesa3.1 libs, tried the demos and everything worked perfectly. But

When you configure SDL, does it say something like:

checking for OpenGL (GLX) support… yes

if I compile the gltest demo of SDL and run it, it says that the x11
driver is not configured for OpenGL. I have defined HAVE_OPENGL but it

This is because it didn’t detect OpenGL. Re-configure SDL now that
Mesa is installed.

m.On Mon, Feb 28, 2000 at 05:37:39PM +0100, Martin Kremecek wrote:


Programmer "I wrote a song about dental floss,
Loki Entertainment Software but did anyone’s teeth get cleaner?"
http://lokigames.com/~briareos/ - Frank Zappa, re: the PMRC

vining at pacificcoast.net wrote:

Hi!

I have a problem using OpenGL with SDL 1.1 under Linux. I have installed
the Mesa3.1 libs, tried the demos and everything worked perfectly. But
if I compile the gltest demo of SDL and run it, it says that the x11
driver is not configured for OpenGL. I have defined HAVE_OPENGL but it
doesnt change anything. This is probably a newbie question, but anyway I
played around for a while ( recompiled the SDL source with -DHAVE_OPENGL
and used the new libs etc…), but it still doesn’t work. So if someone
could please tell me a potential cause I’d be very grateful!

Hmm. Did you alias your libraries so that in /usr/lib (I think!) you have:

libGL.so.1.0.2 (or whatever it is)
and libGLU.so.1.0.2?

the libs are there…>

Mesa links to libMesaGL, so the test programs will work. SDL looks for libGL,
the standard name for the GL library. Have a gander through README.X11,
included in your Mesa 3.1 distribution, for hints on how to properly create
symbolic links.

If this doesn’t fix the problem, post back again and we can have another whack
at it.

Martin

Nicholas

Daniel Vogel wrote:

Daniel Vogel wrote:

do other GL apps like glinfo work?

ups, sorry didn’t read your email thoroughly.

and used the new libs etc…), but it still doesn’t work. So if someone
could please tell me a potential cause I’d be very grateful!

Okay, what does locate SDL tell you? Maybe you have some older version
of SDL installed somewhere that defaults to not use OpenGL. Btw, the
configure option is --enable-video-opengl and defaults to true. If you
compile with -DHAVE_OPENGL it shouldn’t write “X11 driver not configured
with OpenGL” as the code isn’t compiled in.

Well, so I guess you have
several versions of SDL lying around.

That was right, but I de installed the 1.0.4 version using GnoRPM, and the
libraries should
already be 1.2 anyway because I changed the links to the new lib. Is there
anything special I have to change to make 1.2 the current version?>


Daniel Vogel My opinions may have changed,
666 @ http://grafzahl.de but not the fact that I am right

Michael Vance wrote:

I have a problem using OpenGL with SDL 1.1 under Linux. I have installed
the Mesa3.1 libs, tried the demos and everything worked perfectly. But

When you configure SDL, does it say something like:

checking for OpenGL (GLX) support… yes

if I compile the gltest demo of SDL and run it, it says that the x11
driver is not configured for OpenGL. I have defined HAVE_OPENGL but it

This is because it didn’t detect OpenGL. Re-configure SDL now that
Mesa is installed.

It does detect OpenGL when configuring. I recompiled it and replaced the
libraries but no change again.> On Mon, Feb 28, 2000 at 05:37:39PM +0100, Martin Kremecek wrote:

m.


Programmer "I wrote a song about dental floss,
Loki Entertainment Software but did anyone’s teeth get cleaner?"
http://lokigames.com/~briareos/ - Frank Zappa, re: the PMRC