OpenGLInsights / OpenGLInsightsCode

Source code for OpenGL Insights
653 stars 229 forks source link

Chapter 7 demo fails to compile due to missing file #12

Closed xty closed 3 years ago

xty commented 7 years ago

It seems the issues in this repo are not being monitored, but I will post it here anyway for the lack of a more appropriate place.

When I compile the codes in both demo1 and demo2 using GNU Make, the following error occur:

$ make Linux
gcc -I. -I/usr/include shaderdemo.c -lglfw -lGLU -o shaderdemo
In file included from shaderdemo.c:29:0:
./GL/glfw.h:162:20: fatal error: GL/gl.h: No such file or directory
compilation terminated.
Makefile:11: recipe for target 'Linux' failed
make: *** [Linux] Error 1

It appears GL/gl.h is needed for compilation but is missing for some reason.

xty commented 7 years ago

@stegu

stegu commented 7 years ago

This is a problem with your OpenGL configuration. In the Makefile, you need to specify the search path to where your GL directory is installed locally.

On 30 Mar 2017 21:25, "xty" notifications@github.com wrote:

It seems the issues in this repo are not being monitored, but I will post it here anyway for the lack of a more appropriate place.

When I compile the codes in both demo1 and demo2 using GNU Make, the following error occur:

$ make Linux gcc -I. -I/usr/include shaderdemo.c -lglfw -lGLU -o shaderdemo In file included from shaderdemo.c:29:0: ./GL/glfw.h:162:20: fatal error: GL/gl.h: No such file or directory compilation terminated. Makefile:11: recipe for target 'Linux' failed make: *** [Linux] Error 1

It appears GL/gl.h is needed for compilation but is missing for some reason.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/OpenGLInsights/OpenGLInsightsCode/issues/12, or mute the thread https://github.com/notifications/unsubscribe-auth/AAplaqOnXW5N7BfV8Dm5V6G80QQkq2PVks5rrAGmgaJpZM4Muz9X .