paroj/gltut

glsdk could not compiled on mac

Closed this issue · 2 comments

Originally reported by: xjtudevilknight (Bitbucket: xjtudevilknight, GitHub: xjtudevilknight)


==== Building glload (debug) ====
==== Building glimg (debug) ====
==== Building freeglut (debug) ====
freeglut_callbacks.c
In file included from src/freeglut_callbacks.c:29:
src/freeglut_internal.h:107:14: fatal error: 'GL/glx.h' file not found

include <GL/glx.h>

         ^

1 error generated.
make[1]: *** [obj/Debug/freeglut_callbacks.o] Error 1
make: *** [freeglut] Error 2


Original comment by Federico Foderaro (Bitbucket: FedFod, GitHub: FedFod):


On mac you have to include <OpenGL/gl.h>

Compiling using CPPFLAGS=-I/opt/X11/include make config=debug worked for me