Once upon a time, I compiled my OSG application for the Mac. It never worked quite right, but now I have time to get it right. However, since I'm relatively new at Mac programming in general and Xcode in particular, I'm encountering some obstacles.
My application is somewhat more complicated than normal because I'm using both osgProducer::Viewer in one window and a simple FLTK GUI in another window. This works very well under Linux and reasonably well under Windows (MinGW). Both the Producer main event loop and the FLTK main event loop are in separate threads that are not the main thread. I compiled OSG/Producer/OpenThreads as dylibs with make on the command line and I get a partially working executable, but I don't have the ability to interact with it. I can't drag the earth model around in the viewer window, I can't push the FLTK buttons, nothing. I have to kill the process from another window. The kind folks at WWDC suggested I bundle the application to make it work better but my initial attempts to do this have not worked. So I tried again, using the Xcode projects in the OSG repository. I started with OpenThreads, but I got an error: "Unable to create directory /Library/Caches/com.apple.Xcode.6060/SharedPrecompiledHeaders/OpenThreads_Prefix-blahblahblah" Ok, no problem I thought. I changed the "Precompiled Headers Cache" property to something in my home directory, but now I get a different message: "fatal error: can't create precompiled header ~/Library/Caches/PrecompiledHeaders/OpenThreads_Prefix-blahblahblah/OpenThreads_Prefix.pch.gch: No such file or directory", but the directory does exist. Any suggestions? I'm using OSG 1.2. Thanks, Eric _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

