I got the demos from the SDK to compile, using the SDK/compiling_for_macosx_intel_readme.txt which is actually a shell script, so if you source it, it compiles the demos, assuming you have OpenGL libs in the expected places (They were already there on Leopard, though I did install the build tools, so it may have been part of that).
SO I made me a little shell script in my ~/bin to compile my AR apps…it has this inside:
gcc -framework GLUT -framework OpenGL -Wall -o $2 $1 -I $AR_HOME/include/ -I /System/Library/Frameworks/OpenGL.framework/Headers -I /System/Library/Frameworks/GLUT.framework/Headers -Llib -L/System/Library/Frameworks/OpenGL.framework/Libraries -lGL -lGLU -lm -lobjc -lstdc++
it takes 2 params, the first is the .cpp source file, the second is the output (which doesn’t have to be .app). Don’t forget the second param or it will eat your source code (sorry, I suck at shell scripting).
Unfortunately I’m having issues with building the basic_artag_opengl demo .cpp, as its giving errors about cvcam not existing…. guess more hacking is required.