PDA

View Full Version : include OpenGL under Linnux with Nvidia lib



malrog98
03-14-2001, 09:21 AM
hi,

i have a Nvidia card under linux with this specifique library libGL.so.

i needs openGL include, glut include and glext include to compill a soft.

i can use the mesa include????

or, where i can have appropriate include?

thanks.

rts
03-15-2001, 09:23 AM
I believe you can simply use the Mesa include files, but I'm not 100% sure (I don't have an nvidia card myself).

chennes
03-15-2001, 11:48 AM
I do, and it works fine for me...

Chris

03-19-2001, 07:28 AM
Hi,
I'm not sure but their is no differences between Mesa includes and nvidia Opengl's if you don't use opengl extension.

But you need, to use the hardware accelerated driver, compile your program using the
the -lGL -lGLU... and not the -lMesaGL -lMesaGLU ...

Nevertheless only use the standart GL includes and switch i 'll make your program more portale (not like some of old NeHe tuts).

03-19-2001, 11:34 PM
When you install XFree86 4.0.x, the installer should install the OpenGL includes in /usr/X11R6/include/GL by default. It then creates a symlink from /usr/include/GL to /usr/X11R6/include/GL. I don't know if this holds true when using RPM installers, but the XFree installer does this.

03-20-2001, 12:27 AM
I forgot to add that the headers are actually Mesa 3.4 headers.