Context Navigation

The OpenSceneGraph build system can generate packaging targets for you if you have cmake version 2.6.0 or higher. Versions of cmake from 2.6.1 works better in that it can generate packaging targets for the non-standard plugins (e.g. vnc, dae (COLLADA), vrml...).
To enable generation of package targets run cmake with -DBUILD_PACKAGES=ON or check to box next to BUILD_PACKAGES in cmake-gui.

The following targets (at least) will be generated

Package Name

make target

MSVC project

Contents

libopenthreads

package_libopenthreads

Package libopenthreads

The OpenThreads? library. On windows using shared binaries it includes the dll

libopenthreads-dev

package_libopenthreads-dev

Package libopenthreads-dev

OpenThreads? headers. If building static binaries this package includes the library. On windows and building shared binaries this package contains the link library

If you are building non-standard plugins the following targets might be generated. Generating these targets will happen only with cmake-2.6.1 or higher

Package Name

make target

MSVC project

Contents

Dependencies

libopenscenegraph-iv

package_libopenscenegraph-iv

Package libopenscenegraph-iv

The inventor plugin

Coin

libopenscenegraph-dae

package_libopenscenegraph-dae

Package libopenscenegraph-dae

The COLLADA plugin

COLLADA version-??

libopenscenegraph-dicom

package_libopenscenegraph-dicom

Package libopenscenegraph-dicom

The dicom plugin

ITK or DCMT

libopenscenegraph-gdal

package_libopenscenegraph-gdal

Package libopenscenegraph-gdal

The GDAL plugin

GDAL

libopenscenegraph-gecko

package_libopenscenegraph-gecko

Package libopenscenegraph-gecko

The Gecko plugin

libxul-1.8.x

libopenscenegraph-pdf

package_libopenscenegraph-pdf

Package libopenscenegraph-pdf

The pdf plugin

Cairo, Poppler

libopenscenegraph-svg

package_libopenscenegraph-svg

Package libopenscenegraph-svg

The svg plugin

Cairo/SVGR

libopenscenegraph-vnc

package_libopenscenegraph-vnc

Package libopenscenegraph-vnc

The VNC plugin

libVNCServer

libopenscenegraph-vrml

package_libopenscenegraph-vrml

Package libopenscenegraph-vrml

The VRML plugin

VRML-14.3

Platform specifics

On Windows CPack looks for 7-zip (7-zip.org) or Winzip in the %ProgramFiles?% folder. I use only 7-zip and it works great for generating tgz's or zips if you like.

On windows the cmake scripts tries to determine what compiler you have. Especially it tries to distinguish between vc80 and vc80sp1 since vc80 (msvs 2005) is known to generate "false" error reports on osg-users