Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#183 Mac OS X: Broken Header (Solution Included)

closed-fixed
nobody
critical (31)
5
2012-11-16
2012-09-04
Anonymous
No

/usr/local/include/GL/freeglut_std.h:122:19: error: GL/gl.h: No such file or directory
/usr/local/include/GL/freeglut_std.h:123:20: error: GL/glu.h: No such file or directory

Fixed with

#ifdef __APPLE__
# include <OpenGL/gl.h>
# include <OpenGL/glu.h>
#else
# include <GL/gl.h>
# include <GL/glu.h>
#endif

Discussion

    • status: open --> closed-fixed
     
  • Please note that we do not support OSX natively, or test FreeGLUT in X11 on OSX. Nonetheless, I have added this include in r 1393