| Version 3 (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 # 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 libffmpeg-dev # For medical visualization you'll want to DCMTK for loading dicom files: sudo apt-get install dcmtk libdcmtk1-dev # For 3D web browser we'll need geko 1.8.x sudo apt-get install libgtk2.0-dev sudo apt-get install libxul-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 # check out OSG svn co http://www.openscenegraph.org/svn/osg/OpenSceneGraph/trunk OpenSceneGraph # compile the OSG cd OpenSceneGraph ./configure make -j 8 cd .. # install sdl sudo apt-get install libsdl-dev # install libxml2 sudo apt-get install libxml2-dev # get Present3D svn co http://www.openscenegraph.org/svn/Present3D/trunk Present3D cd Present3D ./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 xxdiff sudo apt-get install dos2unix sudo apt-get install libboost-regex sudo apt-get install doxygen graphviz sudo apt-get install subversion-tools # check out genwrapper svn checkout http://www.openscenegraph.org/svn/genwrapper/trunk genwrapper
