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: These instructions where tested under Windows 7
Windows Requirements:
Note: The root OSG folder will be referred to as [OSG_FOLDER] in this page
Visual Studio | OpenSceneGraph Git Tag | OpenScenGraph 3rdParty libs |
---|---|---|
VS 2013 Community edition ver 12.0.40629.00 Update 5 | OpenSceneGraph-3.5.6 | 3rdParty_VS2013_v120_x86_x64_V9_small.7z |
VS Community 2017 15.2.26430.15 | OpenSceneGraph-3.5.6 | 3rdParty_VS2017_v141_x64_V11_small.7z |
Note: The absolute path to (and including) 3rdParty_x86_x64 will be referred to as [OSG_3RDPARTY] in this page
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 variable:
CMAKE_INSTALL_PREFIX
= [OSG_FOLDER]\install
BUILD_OSG_EXAMPLES
checked off if you want examples built. Adds significantly to the build time. Set to false by default (OPTIONAL)ACTUAL_3RDPARTY_DIR
= [OSG_3RDPARTY]\x64
WIN32_USE_MP
enable parallel compilation in Visual Studio. Greatly speeds up the build process. "Advanced" must be checked for this option to show.GDAL_LIBRARY
= [OSG_3RDPARTY]\x64\lib\gdal_i.lib
. Otherwise gdal.lib
without an _i will be chosen, which results in linker errors.Finally, create the build system:
In Visual Studio:
[OSG_FOLDER]\build
folder. Choose OpenSceneGraph.sln
and click "Open"osgversion
executable is in [OSG_FOLDER]\install\bin
In System Properties (on your machine):
;[OSG_FOLDER]\install\bin;[OSG_3RDPARTY]\x64\bin
at the end of the Pathosgversion
. It should tell you the version of OSG that you have installed.osgviewer filename
to see the model using the standard OSG viewer application. A standard test dataset for OSG is also available on the OSG Data Resources page. A very common test to ensure that OSG is installed properly is osgviewer cow.osg
.OpenSceneGraph is now built and installed, and ready for use with OpenFrames.
Wiki: Building OpenFrames for Windows
This file does not appear. I have 56 items in this folder, most of which are of the type "osg148-osgXXXX.dll" (or a matching pdb)
I have in this folder only two executables, called: "osg2cpp.exe" and "sogshaderpipeline.exe" . There is also a folder called osgPlugins-3.5.6. which has 221 items of the type "osgdb_XXX.dll" (or a matching pdb).
If I look in [OSG_FOLDER\build\bin, I do find osgversion.exe,
It looks like something is not working out right for me when I build the "INSTALL" projects, because not all of the created files are being moved to the install dir. I've added [OSG_FOLDER]\build\bin to my path instead. Although not recommended, it does at least solve the issue for now, and I can run "osgversion" from the command line.
Last edit: Anika Halota 2017-11-09