This page under construction
OpenSceneGraph provides the underlying scene graph management capabilities for OpenFrames. This page outlines the process of downloading and building the OpenSceneGraph libraries.
NOTE: This guide currently applies to Mac OSX, but will be updated in the future with Windows/Linux instructions.
Mac Requirements:
In CMake:
The configure process sets up build variables that can be modified before generating the actual build system. The variable list can be organized by clicking the "Grouped" button. Set the following variables:
CMAKE_INSTALL_PREFIX
= \[OSG_FOLDER\]/X11-install
OSG_WINDOWING_SYSTEM
= X11
Finally, create the build system:
In Terminal:
\[OSG_FOLDER\]/X11-build
foldermake
, or make -jN
where N is the number of cores your computer hasmake install
to install the compiled OpenSceneGraph into the \[OSG_FOLDER\]/X11-install
folderosgversion
executable is in \[OSG_FOLDER\]/X11-install/bin
In Terminal:
export OSG_ROOT=/path/to/OSG/X11-install export PATH=$PATH:$OSG_ROOT/bin:$OSG_ROOT/share/OpenSceneGraph/bin export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$OSG_ROOT/lib export DYLD_BIND_AT_LAUNCH
osgversion
. It should tell you the version of OSG that you have installed.OpenSceneGraph is now built and installed, and ready for use with OpenFrames.