Che Hodgins // Musings on Web Development

OpenGL (glut) in Eclipse on Mac OSX 10.6

Wednesday, September 15, 2010opengl

This took some research to get working so here is an overview.

  • Install MacPorts (http://www.macports.org/)
  • Install glut using MacPorts
    • sudo port install glut
  • Install X11
  • Download eclipse
  • Create or open an existing project in eclipse
  • Open project properties and set the following properties:

  • Use #include <GLUT/glut.h>
  • Recompile project and voila.
  • Digg
  • del.icio.us
  • Facebook
  • Reddit
  • StumbleUpon
  • TwitThis

blog comments powered by Disqus