Version 5 (modified by 16 years ago) ( diff ) | ,
---|
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
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
Download ossim from svn:
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
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/ossim.conf sudo echo "/usr/local/lib64" >> /etc/ld.so.conf.d/ossim.conf
Compile Ossim core libs:
cd /home/sasha/GIS/ossim/ossim ./configure --with-geotiff=/usr/include/geotiff --prefix=/usr --with-jpeg=/usr --with-libtif make sudo make install
To build libwms on ubuntu 8.10 download these patch :
Save the patch as libwms.patch and run :
cd /home/sasha/GIS/ossim/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 /home/sasha/GIS/ossim/ossim_qt4 qmake ossim_qt4.pro make sudo make install
Build ossimPredator libs:
cd /home/sasha/GIS/ossim/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:
Save the patch as ossimPlanet.patch and run :
cd /home/sasha/GIS/ossim/ossimPlanet patch -Np0 < /path/to/ossimPlanet.patch OSSIMPREDATOR_LIB_DIR=/usr/local/lib make sudo OSSIMPREDATOR_LIB_DIR=/usr/local/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 /home/sasha/GIS/ossim/ossimPlanetQt/ qmake ossimPlanetQt.pro make sudo make install sudo ldconfig
To buid ossim_plugin, change the gdal setting in the file
/home/sasha/GIS/ossim/ossim_plugins/make.opt.in /home/sasha/GIS/ossim/ossim_plugins/make.opt
To point where you have gdal's files (hhere 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 /home/sasha/GIS/ossim/ossim_plugins/ make
Create an "ossim-data" directory readed from ossim at its startup and copy the "ossim support data" inside it :
mkdir /home/sasha/.ossim 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