Index Introduction Contents Install Dependencies examples Data Viewer Stereo osgdem Plan Reference Guides

Scene graph dependencies

The OpenSceneGraph is composed of core scene graph libraries, plugins libraries and demo programs. The core scene graph libraries (osg, osgDB, osgUtil, osgText, osgParticle, osgSim) are only dependent upon OpenGL and Standard C++ so should compile straight out of the box on most systems. To run the examples one will also need to compile osgProducer which adds the dependency of Producer, and if true type text is required then the freetype library will be required. The plugins which are used to read and write various file formats have their own sets of dependencies listed below, some have no dependencies at all. A plugin is only needed if you need to load that specific file format, so it is not critical if you don't have all the required dependencies.

Under UNIX you can take advantage of flexibility in the build system that allows you to manually define the external dependencies that are installed on your system.  To override the default dependencies copy the Make/dependencies file to a directory of choosing, and then point to this file by setting the OSG_DEPENDENCIES environmental variable to point to this file.  Then edit this file to reflect which dependencies are present. i.e

    cd /home/osguser/OpenSceneGraph
    cp Make/dependencies my_custom_osg_dependencies
    export OSG_DEPENDENCIES=/home/osguser/OpenSceneGraph/my_custom_osg_dependencies
    myfavorite-editor my_custom_osg_dependencies

When editing the file, simple change the no to yes, and visa-versa where apporpriate.


Windows dependency archives

To make life easier for Windows users, we have put together a .zip archives with all the required dependencies which can be download and installed somewhere in you system. You'll need to set VisualStudio to pick up on the include and libs, and the PATH set to pick up in the dll's. Alternatively, a more hacky but simpler solution is to unpack this archive inside you OpenSceneGraph distribution, so that all the include files drop into OpenSceneGraph/include, and the libs drop into OpenSceneGraph/lib, and all the dll's drop into OpenSceneGraph/bin, this way VisualStudio will pick up the files simpler through the paths set up inside the workspace and project files. The archives can be downloaded here: . .