[osg-users] How to use OSG with Xcode?

Richard Kennaway richard at kennaway.org.uk
Sat Nov 21 14:31:01 PST 2015


I want to use OSG on a Mac with Xcode, and I'm running into some difficulties. I've been able to build OSG 3.4.0 and run the examples from the command line.  Following the information in README.txt, I edited CMakeLists.txt to turn on BUILD_OSG_EXAMPLES and OSG_BUILD_APPLICATION_BUNDLES, and added a case to detect OSX 10.11 (El Capitan, which I'm running) to the line that currently tests for 10.8, 10.9, and 10.10.

However, despite the setting of OSG_BUILD_APPLICATION_BUNDLES, no such applications appear to have been built.  (I'm not at all familiar with CMake, but searching through the CMake files, it's not clear to me where that setting would cause these to be built.)

I'm also at something of a loss to know how to set up an Xcode project for an OSX application that uses OSG.  Are there any example projects available?

-- 
Richard Kennaway


More information about the osg-users mailing list