Okay. I finally have a solution!

First thing to note: I didn't have any other gcc compilers other than the "llvm 
gcc 4.2" that came with my XCode app. This is because XCode 4.3.1 comes from 
the App store and resides in /Applications, and I have NO /Developer folder.

So, I used Macports to install a different llvm gcc compiler:

Code:
sudo port install llvm-gcc42



Then I compiled OSG like this:

Code:
CC=/opt/local/bin/llvm-gcc CXX=/opt/local/bin/llvm-g++ ccmake 
../OpenSceneGraph-3.1.1



(note: you cannot set the CMAKE_OSX_ARCHITECTURE because this compiler doesn't 
understand -arch flags, so I'm not sure how you would make a universal build 
this way).

I also had to set OSG_WINDOWING_SYSTEM to Cocoa and 
OPENTHREADS_ATOMIC_USE_MUTEX to ON.

Using that build of OSG, my app build, links and runs just fine.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=46959#46959





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to