Linux - Where can I get gl.h or glx.h so I can compile OpenGL programs?

Answer ID 163
Published 11/30/2004 07:22 AM
Updated 02/25/2008 10:48 AM

Where can I get gl.h or glx.h so I can compile OpenGL programs?


Most systems come with these header files preinstalled.  However,

NVIDIA provides its own gl.h and glx.h files which get installed

in /usr/share/doc/NVIDIA_GLX-1.0/include/GL/.  To use these

files, either manually copy them into /usr/include/GL/,

or instruct the installer to install these files in

/usr/include/GL/ by passing the '--opengl-headers' option to the

NVIDIA-Linux-x86-1.0-6629-pkg1.run file during installation.

Was this answer helpful?
Your rating has been submitted, please tell us how we can make this answer more useful.

LIVE CHAT

Chat online with one of our support agents

CHAT NOW

ASK US A QUESTION

Contact Support for assistance

CONTACT US