paroj / gltut

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

glsdk could not compiled on mac #82

Closed paroj closed 6 years ago

paroj commented 10 years ago

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


paroj commented 10 years ago

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


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

oreqizer commented 6 years ago

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