2. install the XCode Tools found on the Leopard DVD under
Optional Installs->Xcode Tools
3. Open a terminal
4. #include
5. gcc -Wall -o test test.c -framework OPENGL -framework GLUT
Problems:
--------------
1. If you run ./test and get the following error
GLUT Fatal Error: internal error: NSInternalInconsistencyException, reason: Error (1002) creating CGSWindow
Add the following line at the beginning of the main function
glutInit(&argc, argv);
Reference 1
Further reference for the problem.Reference 2
This post is build on the post.
Reference 3
Run an OpenGL code in MacOSX using XCode. Reference 4
1 comment:
Thanks for the tip. Saved me!
-C
Post a Comment