Version 5 (modified by robert, 4 years ago)

--

This is a quick guide for developers who are working under a Debian based distro, such as Debian itself, Ubuntu, Kubuntu etc, and takes you from fresh install to having all the tools and sources required to build the OpenSceneGraph and related projects. In an console you can copy and paste in the follow elements, just select what parts you need.

# First grab the tools required to configure builds system (cmake), compile (g++) and do version control (subversion):
sudo apt-get install cmake subversion g++

# Next up we need OpenGL and GLX, for Nvidia drivers you'll need something like the following:

sudo apt-get install libx11-dev
sudo apt-get install nvidia-glx-180-dev libglu-dev

# Now we need the various libraries that support various image formats:
sudo apt-get install libpng-dev libjpeg-dev libtiff-dev libgif-dev

# And of course we'll want some pretty text rendering so pull in freetype as well:
sudo apt-get install libfreetype6-dev

# If you want to do any geospatial work then you'll need GDAL:
sudo apt-get install libgdal-dev

# To download data over http 
sudo apt-get install libcurl4-dev

# For video work you'll want ffmpeg (applies to 2.9.x dev series)
sudo apt-get install libavdevice-dev libavfilter-dev libavcodec-dev libavutil-dev


# For medical visualization you'll want to DCMTK for loading dicom files:
sudo apt-get install dcmtk libdcmtk1-dev

# For 3D PDF reader:
sudo apt-get install libpoppler-glib-dev

# 3D Vnc client:
sudo apt-get install libvncserver-dev

# For Svg rendering:
sudo apt-get install librsvg2-dev

# For Qt examples and osgQt library
sudo apt-get install libqt4-dev libqt4-opengl-dev libqtwebkit-dev

# install sdl for SDL example and joystick support in Present3D
sudo apt-get install libsdl-dev


# check out OSG
svn co http://www.openscenegraph.org/svn/osg/OpenSceneGraph/trunk OpenSceneGraph

# compile the OSG
cd OpenSceneGraph
./configure
make -j 8
cd ..


# get VirtualPlanetBuilder
svn co http://www.openscenegraph.org/svn/VirtualPlanetBuilder/trunk VirtualPlanetBuilder
cd VirtualPlanetBuilder
./configure
make -j 8
cd ..

# test of osgviewer and libcurl plugin
osgviewer http://www.openscenegraph.org/data/earth_bayarea/earth.ive


# extra utilities
sudo apt-get install graphviz
sudo apt-get install xxdiff
sudo apt-get install dos2unix
sudo apt-get install libboost-regex-dev
sudo apt-get install doxygen
sudo apt-get install subversion-tools

# check out genwrapper
svn checkout http://www.openscenegraph.org/svn/genwrapper/trunk genwrapper