wiki:BuildEnvironment

Version 8 (modified by Torben Dannhauer, 15 years ago) (diff)

--

Build Environment

In short: How to Build

  1. Download and compile OSG
  2. Download osgVisual from svn: http://www.osgvisual.org/svn/osgvisual/osgVisual
  3. Run CMAKE and select your required modules
  4. Compile osgVisual

OpenSceneGraph

To use osgVisual, users have to create a build environment like OpenSceneGraph. It is recommended not to use precompiled packages but to compile osg from SVN trunk. Read http://www.openscenegraph.org/projects/osg/wiki/Support/GettingStarted for further details.
Windows user can use the third party requirements as precompiled packages for VS2005 and VS2008 (Watch you VS version, otherwise you'll get unpredicable compile or runtime errors!) from http://www.openscenegraph.org/projects/osg/wiki/Downloads/Dependencies.

In short:

osgVisual third party modules

osgVisual provides several moduls which rely on commercial third party modules like Vista2D or Silverlining. To use this moduls, install the packages and activate the modules during CMAKE configuration. If modules are enabled, additionally configuration options appear after running another "configure" loop. Specify the options (e.g. Silver-lining license information or paths to libraries and include files.

It is possible to run osgVisual without any commercial module.

osgVisual

PlatformSpecifics

Visual Studio

Because osgVisual is mainly developed in Windows 7, CMAKE to generates the VS solution user file (vcproj.user) [1] to preset:

  • Command
  • Working Directory
  • Command Arguments

This way, you can osgVisual directly compile and use without specifying the required parameters.

Links

[1] http://stackoverflow.com/questions/1005901/how-to-set-path-environment-variable-using-cmake-and-visual-studio-to-run-test