| Version 14 (modified by robert, 4 years ago) |
|---|
Dependencies
The OpenSceneGraph has range of dependencies, listed at the bottom of this page, most of which are optional and only required if you want to load a specific type of data. The OpenSceneGraph !CMake based build system can automatically detect what dependencies you have installed and enable/disable the build of various modules according to what is available. Under Windows and Debian linux pre built binary packages available, using these can make your life a little easier.
Windows prebuilt dependency package
- VisualStudio 8 - pending
- VisualStudio 9 - 3rdParty_Win32Binaries_vc90sp1.zip
- VisualStudio 7 - 3rdParty_Win32binaries_2005_05_10.zip
The dependencies packages were built from sources at the following URL's:
- http://prdownloads.sourceforge.net/freetype/ft219.zip
- ftp://ftp.remotesensing.org/pub/gdal/gdal126.zip
- http://www.xmission.com/~nate/glut/glut-3.7.6-src.zip
- ftp://ftp.simtel.net/pub/simtelnet/msdos/graphics/jpegsr6.zip
- http://prdownloads.sourceforge.net/libungif/libungif-4.1.3.tar.gz
- ftp://swrinde.nde.swri.edu/pub/png/src/lpng128.zip
- ftp://ftp.remotesensing.org/pub/proj/proj-4.4.9.zip
- ftp://ftp.remotesensing.org/pub/libtiff/tiff-3.7.2.zip
- http://www.zlib.net/zlib122.zip
Debian pre package dependencies
Under Debian GNU/Linux you can make use of the pre-packaged binaries and run apt-get build-dep openscenegraph to download and install the necessary dependencies.
A quick dependencies guide follows.
- Plugins :
The plugins are all optional, many of which have no further requirements beyond the core libraries so will compile straight out of the box. Other plugins require 3rd party libraries to be installed to allow them to be compiled. If you don't need to compile and plugin that is at present being compiled by default simply comment it out of the Make/makedirdefs file under Unix or unselect that particular plugin in VisualStudio's batch build. Follows is a list of dependencies and where to download them for each set of platforms.
| file format | Plugin source code in the OSG distribution | Windows | OSX | Unix |
| tiff images | src/osgPlugins/tiff | tiff from the gnuwin32 repository | Fink or (see note on Quicktime) | libtiff |
| jpeg images | src/osgPlugins/jpeg | jpeg from the gnuwin32 repository | Fink or (see note on Quicktime) | libjpeg |
| gif images | src/osgPlugins/gif | libungif from the gnuwin32 repository | Fink or (see note on Quicktime) | libungif |
| png images | src/osgPlugins/png | libpng from the gnuwin32 repository | Fink or (see note on Quicktime) | libpng & libz |
| true type fonts | src/osgPlugins/freetype | freetype from the gnuwin32 repository | Fink or freetype | freetype |
| performer .pfb's | src/osgPlugins/pfb | Performer (now discontinued) | Performer is not available | Performer - for Linux and IRIX (now discontinued) |
Notes, under OSX you can use Quicktime along with the src/osgPlugins/quicktime plugin to load tiff, jpef, gif and png images formats so you don't need to compile the related plugins.
