Add updated repository for ubuntu 8.10 intrepid : {{{ # add repository to sources.list (thanks to Jef) echo "deb http://ppa.launchpad.net/jef-norbit/ubuntu intrepid main" >> /etc/apt/sources.list echo "deb-src http://ppa.launchpad.net/jef-norbit/ubuntu intrepid main" >> /etc/apt/sources.list # Update : sudo apt-get update sudo apt-get upgrade }}} These repository give you an updated gdal version and a development version of qgis too (apt-get install qgis) Install some depenndecies: {{{ apt-get install libqt4-core libqt4-dev libqt4-gui libqt4-qt3support lsb-qt4 qt4-dev-tools qt4-doc qt4-qtconfig \ uim-qt gdal-bin libgdal1-dev libgeos-dev proj libgdal-doc libtiff4-dev subversion make g++ g++-4.1 gcc libgeotiff1.2 \ libgeotiff-dev libgeotiff-epsg cmake ffmpeg libavcodec51 libavcodec-dev libavdevice52 libavdevice-dev libavformat52 libavformat-dev \ libavutil49 libavutil-dev libswscale0 libswscale-dev doxygen }}} Download and compile Openscenegraph from source : {{{ svn co http://www.openscenegraph.org/svn/osg/OpenSceneGraph/tags/OpenSceneGraph-2.6.1 OpenSceneGraph cd OpensceneGraph mkdir build cd build ccmake .. # delete the not-find libraries from the cmake setting-lines # press c to configure # press g to generate makefile make sudo make install }}} To enable big-tiff support a recent version of libtiff and libgeotiff is needed. so download and compile it : {{{ wget http://download.osgeo.org/libtiff/tiff-4.0.0beta2.tar.gz tar xvfz tiff-4.0.0beta2.tar.gz cd tiff-4.0.0beta2 ./configure make sudo make install wget http://download.osgeo.org/geotiff/libgeotiff/libgeotiff-1.2.5.tar.gz tar xvfz libgeotiff-1.2.5.tar.gz cd libgeotiff-1.2.5 ./configure make sudo make install }}} Download ossim from svn: {{{ cd mkdir -p GIS/ossim cd /GIS/ossim svn co https://svn.osgeo.org/ossim/trunk . # set the permision to read-write sudo chmod 777 -R * }}} Set the ossim environment variables : {{{ echo "export OSSIM_DEV_HOME=$HOME/GIS/ossim" >> $HOME/.bashrc echo "export OSSIM_HOME=${OSSIM_DEV_HOME}/ossim" >> $HOME/.bashrc echo "export OSSIM_QT_HOME=${OSSIM_DEV_HOME}/ossim_qt" >> $HOME/.bashrc echo "export OSSIM_LIB_DIR=$${OSSIM_DEV_HOME}/ossim/lib/ossim" >> $HOME/.bashrc echo "export OSSIM_INC_DIR=${OSSIM_DEV_HOME}/ossim/include" >> $HOME/.bashrc }}} Add /usr/local/lib and /usr/local/lib64 (if you're on 64 bit machine) to you're /etc/ld.so.conf.d/: {{{ sudo touch /etc/ld.so.conf.d/local.conf sudo echo "/usr/local/lib" >> /etc/ld.so.conf.d/local.conf sudo echo "/usr/local/lib64" >> /etc/ld.so.conf.d/local.conf }}} Add an alias for the "arch" command, on ubuntu is not present, to create it simple run these in a terminal : {{{ echo "alias arch='uname -m'" >> $HOME/.bashrc }}} Close all the terminal window, and open a new one Compile Ossim core libs: Open a new terminal to load the environment vars and: {{{ cd $OSSIM_DEV_HOME/ossim ./configure --with-geotiff=/usr/local/ --with-jpeg=/usr --with-libtif=/usr/local/ --prefix=/usr/local/ossim make sudo make install }}} To build libwms on ubuntu 8.10 download these patch : [http://www.geofemengineering.it/libwms.patch libwms_patch] Save the patch as libwms.patch and run : {{{ cd $OSSIM_DEV_HOME/libwms patch -Np0 < /path/to/libwms.patch make sudo make install }}} Load the new libraries open a new terminal and type : {{{ sudo ldconfig }}} Build the Qt4 Gui executable application "Imagelinker" and "iview" {{{ cd $OSSIM_DEV_HOME/ossim_qt4 qmake ossim_qt4.pro make sudo make install }}} Build ossimPredator libs: {{{ cd $OSSIM_DEV_HOME/ossimPredator mkdir lib cd src make sudo -s sudo OSSIM_DEV_HOME=$OSSIM_DEV_HOME OSSIM_HOME=$OSSIM_HOME make install }}} Now build ossimplanet, fon ubuntu 8.10 download these patch: [http://www.geofemengineering.it/ossimPlanet.patch ossim_planet_patch] Save the patch as ossimPlanet.patch and run : {{{ cd $OSSIM_DEV_HOME/ossimPlanet patch -Np0 < /path/to/ossimPlanet.patch OSSIMPREDATOR_LIB_DIR=/usr/local/lib OSSIM_LIB_DIR=/usr/local/ossim/lib make sudo OSSIMPREDATOR_LIB_DIR=/usr/local/lib OSSIM_LIB_DIR=/usr/local/ossim/lib make install }}} now you shoul'd have an exacutable "ossimplanetviewer" based on x11 under : /usr/local/share/libossimplanet/bin/ Build the Qt4 Gui for OssimPlanet : {{{ cd $OSSIM_DEV_HOME/ossimPlanetQt/ qmake ossimPlanetQt.pro make sudo make install sudo ldconfig }}} To buid ossim_plugin, change the gdal setting in the file $OSSIM_DEV_HOME/ossim_plugins/make.opt.in To point where you have gdal's files (here i used gdal from the repository) {{{ GDAL_HOME =/usr/ ifeq ($(origin GDAL_HOME), undefined) GDAL_INCLUDES =/usr/include/gdal/ GDAL_LIBS =/usr/lib else GDAL_INCLUDES = -I$(GDAL_HOME)/include/gdal/ GDAL_LIBS = -L$(GDAL_HOME)/lib endif }}} {{{ cd $OSSIM_DEV_HOME/ossim_plugins/ make }}} Create an "ossim-data" directory readed from ossim at its startup and copy the "ossim support data" inside it : {{{ mkdir $home/.ossim cp -r $OSSIM_DEV_HOME/ossim_package_support/fonts $HOME/.ossim/fonts cp -r $OSSIM_DEV_HOME/ossim_package_support/geoids $HOME/.ossim/geoids cp -r $OSSIM_DEV_HOME/ossim_package_support/images $HOME/.ossim/images }}} There are a lot o