All notes
Osg

Build

### Build

[ ! -d release ] && mkdir release

pushd .
cd release

# Build
cmake ..
# The examples are not built by default. To build examples:
# RunningExamples.
# cmake .. -DBUILD_OSG_EXAMPLES=1

make -j8
popd

### Environment Setting.

# Download the demo data and set the OSG_FILE_PATH environment variable for examples.
export PATH = ${PATH}:/home/myaccount/OpenSceneGraph/bin
export LD_LIBRARY_PATH = ${LD_LIBRARY_PATH}:/home/myaccount/OpenSceneGraph/lib
# For running examples:
export OSG_FILE_PATH = /home/myaccount/OpenSceneGraph-Data:/home/myaccount/OpenSceneGraph-Data/Images

osgviewer cow.osg
osgviewer --help