Installing on Linux
Currently there are no binary releases available and needs to be installed from source. The default parameters should 'just work' but you may need to set the path to the libraries and executables on some flavours.
See the general installation guide for details.
Specific details to install on Ubuntu 11.04
I created this instruction when I installed SPDLib around November 2011 in my virtualbox. The operating system I'm using is Ubuntu 11.04. It is also possible to copy the virtual harddrive to anoter physical machine and use it there without reconfiguration.
Install Python and Python-dev
Install python with something similar to below.
sudo apt-get install python-dev
bzip
sudo apt-get install libbz2-dev
cmake
sudo apt-get install cmake
Boost
tar xvfj boost_1_47_0.tar.bz2 sh ./bootstrap.sh --with-libraries=all --with-python=python sudo ./bjam install
GSL
Download from: http://www.gnu.org/software/gsl
tar xvfz gsl-1.15.tar.gz ./configure make sudo make install
Proj4
Download from: http://trac.osgeo.org/proj/
./configure make sudo make install
HDF5
Download from: ftp://ftp.hdfgroup.org/HDF5/current/src
./configure --enable-cxx --prefix=/usr/local/ make sudo make install
Xerces-C
Download from: http://xerces.apache.org/xerces-c/
./configure make sudo make install
GDAL/OGR
Download from: http://www.gdal.org/
./configure --with-static-proj4=/usr/local/ --with-python make sudo make install
LibLAS
cmake CMakeLists.txt make sudo make install
M4 (required by GMP)
sudo apt-get install m4
GMP (required by MPFR)
Download from: http://gmplib.org/
./configure make sudo make install
MPFR (required by CGAL)
Download from: ftp://ftp.gnu.org/gnu/mpfr/ More information: http://www.mpfr.org/mpfr-current/mpfr.html
./configure make sudo make install
qt4
It seem to be required by CGAL, but the first time I didn't install qt4 and it worked anyway. This one is anyway required if you want to use SPDPointsViewer later.
sudo apt-get install libqt4-dev
CGAL
Download from: http://www.cgal.org/
cmake CMakeLists.txt make sudo make install
SPDLib
Require that you have Mercurial Hg installed.
hg clone http://hg.code.sf.net/p/spdlib/code spdlib cmake CMakeLists.txt make sudo make install
Python bindings for SPDLib
Go to the subfolder python
cmake CMakeLists.txt make sudo make installThe path to the site-packages catalog need to be set as environmental variable:
PYTHONPATH=/usr/local/site-packagesThis can be done permanently by editing the .profile which is located in your home-folder:
gedit ~/.profile
Add:
export PYTHONPATH=${PYTHONPATH}:/usr/local/site-packages
SPDPointsViewer
Require that you have installed qt4.
svn co https://spdpointsviewer.svn.sourceforge.net/svnroot/spdpointsviewer spdpointsviewer cd spdpointsviewer/trunk cmake CMakeLists.txt make sudo cp SPDPointsViewer /usr/local/bin/