Since the fixes required are rather trivial, I didn't bother to make a
proper diff patch. The changes that are needed for it to build
cleanly are pretty simple, first the glut header comes from the
GLUT framework:
#ifdef __APPLE__
# include <GLUT/glut.h>
#else
# include <GL/glut.h>
#endif
Second, you have to call glutInit before making any glut calls else
you end up with an internal glut crash when trying to create the
window:
glutInit(&argc, argv);
The Makefile has to be edited to use the corresponding Mac
frameworks after downloading/installing glew. You can change the
link line to use these flags:
-lGLEW -framework GLUT -framework OpenGL
Finally, for any readers trying to make this work that are on 10.4,
there is apparently a bug in the linker that causes:
dyld: lazy symbol binding failed: lazy pointer not found
dyld: lazy pointer not found
Trace/BPT trap
This is easily fixed by using the 3.3 compiler instead:
make clean
make CXX=g++-3.3
That should do it! This was done in about 5 minutes during the
SIGGRAPH 2005 GPGPU session. Neat stuff.
Cheers!
Sean