Advertisement

glx and linux

Started by March 07, 2002 04:48 PM
5 comments, last by ttctnh 22 years, 11 months ago
When I try to run the OpenGL tutorials, after I "make" the executable, I get an error that says GLUT: Fatal Error in lesson[number]: OpenGL GLX extension not supported by display: :0.0 if I try the linux code and I get a similar message if I try to run the Linux GLX code Does anybody know what is happening?
Are you, by any chance, using an X client (like Exceed) from a Windows machine ? If so, well, you''re out of luck, not all clients let you forward GL.

Otherwise, you may want to have a look at your XFree configuration file to see if it includes glx (ask a XFree guru). Check that your libraries are properly setup (ldconfig).
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
Advertisement
What linux distribution are you running and what video card?
I am running Linux Mandrake 8.1 on a Toshiba satellite laptop.

I dont know the graphics card.

I have all the mesa develop rpm installed and it has the gl.h glu.h glut.h and glx libraries in the usr/include/GL directory.
Oh, I have a dual boot with Windows XP and have no problem running the Windows code for the tutorials on my laptop. So I know that it is not that it wont work with the LCD screen.
So, I had to help a friend with it today

http://205.158.109.140/XFree86_40/1.0-2802/README

go edit /etc/X11/XFreeConfig (or XFreeConfig-4, depending on your version).

Look for Driver "nv", replace it with Driver "nvidia"
Add or uncomment the line Load "glx" in the Module section
Comment out Load "GLcore" and Load "dri"

Make sure that the refresh rates are correct.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
Advertisement
Fruny : and what happens if he doesn''t have a nVidia chip ?
What you''re writing is right, assuming he has a nVidia chip.
Otherwise I''m not sure if it will work correctly.

This topic is closed to new replies.

Advertisement