I’ve recently started programming in Open GL at my university, and there we do it on linux, using the terminal to compile the code we write in some text editor.
I’d like to set up a similar thing at home on my Mac, so I downloaded the xcode pack from Apple, thinking this might help. But I’ve tried running some of the code I’d written at uni, and it doesnt compile, comes up with tons of errors…
Also, we’re using makefiles (I dont know much about these!) and my lecturer told me the makefile would need to be different to run on a windows box, so i assumed that it would also have to be different on mac osx.
If someone could give me a really easy stage by stage guide as to how i do this i’d be so greatful!
You’ve gotten the first step down already, which is to download the XCode package from Apple (available here: XCode Homepage )
During the install, select to install the example projects. (you can also reinstall the package and select this option if you didn’t select it the first time).
Then, you can open /Developer/Examples/OpenGL/GLUT/GLUTExamples.xcodeproj
This project contains quite a few handy GLUT samples that you can study and use for understanding how to get your own OpenGL apps to compile for the Mac OS X platform.