wiki:LinuxBuild

Version 1 (modified by mlucas, 17 years ago) ( diff )

--

Linux Build

The first package to build and install should be the OpenSceneGraph set. This consists of 3 projects:

They should be compiled and installed in that order.

OsgEphemeris is optional.1 line can be commented out of the ossimPlanet build to disable it.

Follow the cvs instructions to download the source files into your development directory.

Ossim is the main Geoprocessing package powering ossimPlanet. This is pretty simple to build using the standard - configure, make and install steps. The ossim libraries are installed in /usr/local/lib/ossim by default.

Though Ossim internally supports geotiff for support of other common raster formats gdal is necessary. This can be built from the cvs or using one of the released tarballs. In various distributions e.g. Gentoo it is part of the Package management system.

In order to enable gdal support ossim_plugin needs to be built.

ossim_qt requires Trolltech Qt Toolkit 3. If both Qt 3 and 4 are installed, as is the case in most up to date systems, environment variables need to be set to use the qt3 install for building.<br> Set the following environment variables using export or appropriate equivalent for your shell:

  • OSSIM_DEV_HOME = path to common checkout location for all dependencies
  • OSSIM_HOME = path to ossim source tree
  • OSSIM_INC_DIR=${OSSIM_HOME}/include
  • OSSIM_LIB_DIR=${OSSIM_HOME}/lib/ossim
  • OSSIM_QT_HOME = path to ossim_qt source tree
  • QTDIR = path to qt3
  • PATH = $QTDIR/bin:$PATH (Override Path to force qt3 install)<br>

rum "qmake ossim_qt.pro" then make and make install to install ossim_qt. The applications imagelinker and iview are built and can be copied appropriate location in the PATH, usually /usr/local/bin/.

Build notes, to be cleaned up later...

  cd ossim ; ./configure ; make depends ; make ; sudo make install; cd ..
  cd ossim_qt; qmake ossim_qt.pro ; make; sudo make install; cd ..
  cd libwms ; make; sudo make install; cd ..
  cd ossimPlanet; make;
  missing header file for ossimyahoo geocoder, fixed
  errors on osgEphemeris includes
  edit ossimPlanet/include/ossimPlanet/ossimPlanetSetup.h  comment out the 
   // #define OSSIMPLANET_ENABLE_EPHEMERIS  if you don't have osgEphemeris installed
  sudo make install ; cd ..
  cd ossimplanet_qt ; qmake ossimplanet.pro ; make
Note: See TracWiki for help on using the wiki.