Changes between Version 1 and Version 2 of Ubuntu-7.10Build


Ignore:
Timestamp:
Feb 10, 2008, 10:03:32 AM (16 years ago)
Author:
epifanio
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Ubuntu-7.10Build

    v1 v2  
    1 Hw to build ossim on ubuntu 7.10
     1How to build ossim on ubuntu 7.10
     2 
     3These notes are based on a fresh ubuntu-7.10 desktop installation.
     4 
     5# install ubuntu 7.10 desktop (these notes are for x86 version, but works fine for 64bit
     6# and ppc too, you only need to change the link to download the debian packages)
     7# add the backports in the  " /etc/apt/sources.list " file
     8# you can open the file using "sudo gedit /etc/apt/sources.list " and uncomment all the deb line
     9# or siple add it using echo :
     10 
     11    sudo echo "deb http://it.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse" >> /etc/apt/sources.list
     12 
     13    sudo echo "deb-src http://it.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse" >> /etc/apt/sources.list
     14 
     15    sudo echo "deb http://archive.canonical.com/ubuntu gutsy partner" >> /etc/apt/sources.list
     16    sudo echo "deb-src http://archive.canonical.com/ubuntu gutsy partner" >> /etc/apt/sources.list
     17 
     18# update your system :
     19 
     20    sudo apt-get update
     21    sudo apt-get upgrade
     22 
     23# install Qt and Py-Qt libraries :
     24 
     25 
     26    apt-get install libqt4-core libqt4-debug libqt4-dev libqt4-gui libqt4-qt3support libqt4-sql lsb-qt4 qt4-designer qt4-dev-tools qt4-doc qt4-qtconfig uim-qt python-dev python-qt4 python-qt4-dev python-sip4 sip4 python-sip4-dev libapt-pkg-perl resolvconf gdal-bin libgdal1-dev libgeos-dev proj libgdal-doc libhdf4g-dev libhdf4g-run  libgsl0-dev
     27g++ libjasper-dev libtiff4-dev subversion libsqlite3-dev sqlite3 ccache make libpq-dev flex bison cmake txt2tags
     28libncurses5-dev fftw3-dev libreadline5-dev svn-buildpackage autotools-dev dpatch debhelper cpp-3.4 g77 g77-3.4  gcc-3.4 libg2c0-dev  g++ g++-4.1 gcc gfortran gfortran-4.2
     29 
     30 
     31# the download is about 700mb , when finish it ask for postfix configuration, i used :
     32 
     33 >>  ok >> nessuna configurazione
     34 
     35 
     36# download debian package for Openscengrph from http://www.debian.org/distrib/packages (search for your
     37# architecture, the follow links are for a standard x86 but 64bit and ppc are disponible too)
     38 
     39    mkdir /home/sasha/dipendenze
     40    cd /home/sasha/dipendenze
     41 
     42    wget http://ftp.de.debian.org/debian/pool/main/o/openscenegraph/libopenscenegraph-dev_2.2.0-2_i386.deb
     43 
     44    wget http://ftp.de.debian.org/debian/pool/main/o/openscenegraph/libopenscenegraph6_2.2.0-2_i386.deb
     45 
     46    wget http://ftp.de.debian.org/debian/pool/main/o/openscenegraph/libopenthreads-dev_2.2.0-2_i386.deb
     47 
     48    wget http://ftp.de.debian.org/debian/pool/main/o/openscenegraph/libopenthreads6_2.2.0-2_i386.deb
     49 
     50    wget http://ftp.de.debian.org/debian/pool/main/c/coin2/libcoin40c2_2.5.0-1_i386.deb
     51 
     52 
     53 
     54    svn co svn://svn.debian.org/svn/pkg-grass/packages/geotiff
     55 
     56    cd /home/sasha/dipendenze/geotiff/libgeotiff-dfsg/trunk/
     57 
     58    sudo svn-buildpackage -us -uc --svn-ignore-new
     59 
     60    cd /home/sasha/dipendenze/geotiff/libgeotiff-epsg/trunk/
     61 
     62    sudo svn-buildpackage -us -uc --svn-ignore-new
     63 
     64 
     65    cd /home/sasha/dipendenze/geotiff/libgeotiff-dfsg/build-area/
     66 
     67    dpkg -i *deb
     68 
     69    cd /home/sasha/dipendenze/geotiff/libgeotiff-epsg/build-area/
     70 
     71    dpkg -i *deb
     72 
     73    cd ../../../
     74 
     75    sudo dpkg -i libopenthreads6_2.2.0-2_i386.deb
     76 
     77    sudo dpkg -i libopenthreads-dev_2.2.0-2_i386.deb
     78 
     79    sudo dpkg -i libcoin40c2_2.5.0-1_i386.deb
     80 
     81    sudo dpkg -i libopenscenegraph6_2.2.0-2_i386.deb
     82 
     83    sudo dpkg -i libopenscenegraph-dev_2.2.0-2_i386.deb
     84 
     85 
     86    cd ..
     87 
     88    mkdir -p GIS/ossim
     89 
     90    cd /GIS/ossim
     91 
     92    svn co -r12212 https://svn.osgeo.org/ossim/trunk .
     93 
     94 
     95    echo "export OSSIM_DEV_HOME=/home/sasha/GIS/ossim" >> /home/sasha/.bashrc
     96 
     97 
     98    echo "export OSSIM_HOME=/home/sasha/GIS/ossim/ossim" >> /home/sasha/.bashrc
     99 
     100 
     101    echo "export OSSIM_QT_HOME=/home/sasha/GIS/ossim/ossim_qt" >> /home/sasha/.bashrc
     102 
     103 
     104    echo "export OSSIM_LIB_DIR=/home/sasha/GIS/ossim/ossim/lib/ossim" >> /home/sasha/.bashrc
     105 
     106 
     107    echo "export OSSIM_INC_DIR=/home/sasha/GIS/ossim/ossim/include" >> /home/sasha/.bashrc
     108 
     109    cd /home/sasha/GIS/ossim/ossim
     110 
     111 
     112    ./configure --with-geotiff=/usr/include/geotiff --prefix=/usr --datadir=/usr/share/ossim --includedir=/usr/include/ossim --with-jpeg=/usr
     113--with-libtif
     114 
     115    make
     116 
     117    sudo make install
     118 
     119    cd /home/sasha/GIS/ossim/libwms
     120 
     121    make
     122 
     123    sudo make install
     124 
     125 
     126    cd ..
     127 
     128    sudo touch /etc/ld.so.conf.d/ossim.conf
     129    sudo echo "/usr/lib" >> /etc/ld.so.conf.d/ossim.conf
     130    sudo echo "/usr/local/lib" >> /etc/ld.so.conf.d/ossim.conf
     131    sudo echo "/home/sasha/GIS/ossim/ossim/lib" >> /etc/ld.so.conf.d/ossim.conf
     132 
     133 
     134# open a new terminal and type :
     135 
     136    sudo ldconfig
     137 
     138    cd /home/sasha/GIS/ossim/ossim_qt4
     139    qmake ossim_qt4.pro
     140    make
     141    sudo make install
     142 
     143    cd /home/sasha/GIS/ossim/ossimPlanet
     144    make
     145    make install
     146 
     147    cd /home/sasha/GIS/ossim/ossimPlanetQt/
     148    qmake ossimPlanetQt.pro
     149    make
     150    sudo make install
     151 
     152    sudo ldconfig
     153 
     154    mkdir /home/sasha/.ossim
     155 
     156 
     157    cp -r /home/sasha/GIS/ossim/ossim_package_support/fonts /home/sasha/.ossim/fonts
     158 
     159 
     160    cp -r /home/sasha/GIS/ossim/ossim_package_support/geoids /home/sasha/.ossim/geoids
     161 
     162 
     163    cp -r /home/sasha/GIS/ossim/ossim_package_support/images /home/sasha/.ossim/images