# do an Update : sudo apt-get update sudo apt-get upgrade # Install some libraries : 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 libopenscenegraph6 libopenscenegraph-dev openscenegraph # download ossim cd .. mkdir -p GIS/ossim cd /GIS/ossim svn co https://svn.osgeo.org/ossim/trunk . # set the ossim environment variables : echo "export OSSIM_DEV_HOME=/home/sasha/GIS/ossim" >> /home/sasha/.bashrc echo "export OSSIM_HOME=/home/sasha/GIS/ossim/ossim" >> /home/sasha/.bashrc echo "export OSSIM_QT_HOME=/home/sasha/GIS/ossim/ossim_qt" >> /home/sasha/.bashrc echo "export OSSIM_LIB_DIR=/home/sasha/GIS/ossim/ossim/lib/ossim" >> /home/sasha/.bashrc echo "export OSSIM_INC_DIR=/home/sasha/GIS/ossim/ossim/include" >> /home/sasha/.bashrc download and install ffmpeg : cd /home/sasha/GIS mkdir DEP cd DEP svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg # build : # ossim # libwms # ossim_qt4 (to do) ## ossimplanet ## ossimplanet_qt ## ossim_plugins cd /home/sasha/GIS/ossim/ossim ./configure --with-geotiff=/usr/include/geotiff --prefix=/usr --datadir=/usr/share/ossim --includedir=/usr/include/ossim --with-jpeg=/usr --with-libtif make sudo make install cd /home/sasha/GIS/ossim/libwms make sudo make install cd .. # add the compiled libraries to your system : sudo touch /etc/ld.so.conf.d/ossim.conf sudo echo "/usr/lib" >> /etc/ld.so.conf.d/ossim.conf sudo echo "/usr/local/lib" >> /etc/ld.so.conf.d/ossim.conf sudo echo "/home/sasha/GIS/ossim/ossim/lib" >> /etc/ld.so.conf.d/ossim.conf # open a new terminal and type : sudo ldconfig cd /home/sasha/GIS/ossim/ossim_qt4 qmake ossim_qt4.pro make sudo make install ################# needs a revision ########## cd /home/sasha/GIS/ossim/ossimPlanet make sudo make install cd /home/sasha/GIS/ossim/ossimPlanetQt/ qmake ossimPlanetQt.pro make sudo make install sudo ldconfig # to buid ossoim_plugin, change the gdal setting in the file # /home/sasha/GIS/ossim/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 -------------------------------------------------- make sudo make install sudo ldconfig # create a "data" directory readed from ossim at its sturtup : mkdir /home/sasha/.ossim # copy the "ossim support data" : cp -r /home/sasha/GIS/ossim/ossim_package_support/fonts /home/sasha/.ossim/fonts cp -r /home/sasha/GIS/ossim/ossim_package_support/geoids /home/sasha/.ossim/geoids cp -r /home/sasha/GIS/ossim/ossim_package_support/images /home/sasha/.ossim/images