The SPIN Framework relies heavily on OpenSceneGraph: http://www.openscenegraph.org
Assuming that you want the latest developer's release (3.0.0 at the time of writing this), follow these instructions:
cd ~/src svn co http://www.openscenegraph.org/svn/osg/OpenSceneGraph/tags/OpenSceneGraph... mkdir OpenSceneGraph-3.0.0-build cd OpenSceneGraph-3.0.0-build ccmake ../OpenSceneGraph-3.0.0
- Press 'c' for initial configure
- Press 'e' after reading notes
- Set the following build options to "ON" (use cursor and enter key):
BUILD_OSG_EXAMPLES : ON BUILD_OSG_PACKAGES : ON
- IGNORE THIS NOW: FOr OSX, choose your architecture: i386 or x86_64 (not both). Note that a 64 bit build will be more powerful/efficeint, but you will need to ensure that all dependency libraries are also compiled for 64 bits. This means using the +univeral variant in MacPorts. Or, if the library is already installed, you can change to a universal build with: sudo port upgrade --enforce-variants <portname> +universal
CMAKE_OSX_ARCHITECTURES : x86_64
- IGNORE THIS NOW: [ for x86_64 on OSX 10.6 ]: there is a bug in 64-bit wxWidgets, you need to disable wxWidgets by setting their configured values to empty:
wxWidgets_CONFIG_EXECUTABLE : wxWidgets_wxrc_EXECUTABLE :
- Press 'c' to configure again (twice?)
- Press 'g' to generate Makefiles
make
sudo make install
note: if during compilation errors occur involving quickTime components, go back to ccmake and deactivate
BUILD_QT_EXAMPLES
and
QT_QMAKE_EXECUTABLE
