Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FreeGLUT on Mac OS X Lion

Tags:

People also ask

Does Freeglut work on Mac?

MacOS X users can use the homebrew package manager to install freeglut with the command: brew install freeglut.


Some context: I am going through a tutorial on using OpenGL. The tutorial requires a couple libraries in order to work. One of those libraries is FreeGLUT. I am on OS X using Lion.

I've downloaded FreeGLUT and followed the instructions for installation, but when I run the 'make all' command I get this error:

error: GL/gl.h: No such file or directory
error: GL/glu.h: No such file or directory

I've scoured the internet for a solution and all I've been able to understand from this is that the compiler is having trouble locating these files and that the path that the compiler is using needs to be changed.

EDIT: Okay, I've figured out that it's not the compiler, it is that for some reason those files are not there. Going to try figure out why they are not there.