paroj / gltut

Learning Modern 3D Graphics Programming
https://paroj.github.io/gltut/
MIT License
1.57k stars 377 forks source link

GL/glx.h is missing . . . #55

Closed paroj closed 8 years ago

paroj commented 12 years ago

Originally reported by: Anonymous


Hi Jason,

The tutorials look excellent. Thanks for creating them.

I'm working on Ubuntu 12.04, and am following the instructions in the Building the Tutorials section.

This appearantly worked: in glsdk premake4 gmake

The errors I'm getting are when attempting to build in the glsdk directory:

make config=debug all

==== Building glload (debug) ==== gll_gl_ext.c source/gll_gl_ext.c:251:26: fatal error: GL/glx.h: No such file or directory compilation terminated. make[1]: *\ [Debug/gll_gl_ext.o] Error 1

regards, -jg-

John Gibson Toronto


paroj commented 12 years ago

Original comment by Jason McKesson (Bitbucket: alfonse, GitHub: alfonse):


Not a code problem; it's a local machine problem.

paroj commented 12 years ago

Original comment by Jason McKesson (Bitbucket: alfonse, GitHub: alfonse):


I've (re)discovered that, on a fresh Linux install from popular distros like Ubuntu/Mint/etc, you need to install a bunch of package in order to build any OpenGL application. To build the SDK as part of the tutorial, you need:

You can find these in the Synaptic Package Manager. I may have missed some; I wasn't taking notes as I tried lots of different packages before I could build.

paroj commented 12 years ago

Original comment by Jason McKesson (Bitbucket: alfonse, GitHub: alfonse):


I'm not sure how to go about fixing this. You may need to install something Linux related. GL/glX.h should be a system header so it ought to be part of your system.

Have you updated your graphics drivers?

paroj commented 12 years ago

Original comment by Bob Sabiston (Bitbucket: bsabiston, GitHub: bsabiston):


I am running into this on an iMac running 10.8 as well -- how do you fix it? Thanks Bob