I'm trying to run this openGL example on my Mac from command line using gcc. The XCode is installed, gcc was used many time with other programs (w\o graphics).
Following to this topic I run:
g++ 1.cpp -framework OpenGL -lGLU -lglut
and get:
1.cpp:12:21: fatal error: GL/glut.h: No such file or directory
I found glut.h
at /System/Library/Frameworks/GLUT.framework/Headers/
and noted that structure is different (not GL folder). But even removing GL/
and using -I/System/Library/Frameworks/GLUT.framework/Headers
/ does not help a lot..
So I wonder - how to use openGL with gcc on Mac properly?