Start with installing GDAL, Libgeotiff and Laszip libraries which will be necessary to build LIBLAS.
Installing GDAL (this might take an hour):
$sudo apt-get install build-essential python-all-dev
$wget http://download.osgeo.org/gdal/gdal-1.9.0.tar.gz
$tar xvfz gdal-1.9.0.tar.gz
$cd gdal-1.9.0
$./configure --with-python
$make
$sudo make install
Installing Libgeotiff:
sudo apt-get install proj proj-bin proj-data libproj-dev libtiff4-dev libgeotiff-dev libgdal1-dev gdal-bin python-gdal libgdal1-1.7.0
Installing Laszip:
cd /opt/source
wget http://download.osgeo.org/laszip/laszip-2.1.0.tar.gz
tar xvfz laszip-2.1.0.tar.gz
cd laszip-2.1.0
mkdir build
mkdir cmake_build
cd cmake_build
# run cmake
cmake .. -DCMAKE_INSTALL_PREFIX=/opt/source/laszip-2.1.0/build
# compile
make -j$threads
# install into build dir
make install
Finally now you can download LIBLAS source codes and install by typing:
$ git clone git://github.com/libLAS/libLAS.git liblas
$ cd liblas
$ mkdir makefiles
$ cd makefiles
$ cmake -G "Unix Makefiles" ../
$ make
Installing GDAL (this might take an hour):
$sudo apt-get install build-essential python-all-dev
$wget http://download.osgeo.org/gdal/gdal-1.9.0.tar.gz
$tar xvfz gdal-1.9.0.tar.gz
$cd gdal-1.9.0
$./configure --with-python
$make
$sudo make install
Installing Libgeotiff:
sudo apt-get install proj proj-bin proj-data libproj-dev libtiff4-dev libgeotiff-dev libgdal1-dev gdal-bin python-gdal libgdal1-1.7.0
Installing Laszip:
cd /opt/source
wget http://download.osgeo.org/laszip/laszip-2.1.0.tar.gz
tar xvfz laszip-2.1.0.tar.gz
cd laszip-2.1.0
mkdir build
mkdir cmake_build
cd cmake_build
# run cmake
cmake .. -DCMAKE_INSTALL_PREFIX=/opt/source/laszip-2.1.0/build
# compile
make -j$threads
# install into build dir
make install
Finally now you can download LIBLAS source codes and install by typing:
$ git clone git://github.com/libLAS/libLAS.git liblas
$ cd liblas
$ mkdir makefiles
$ cd makefiles
$ cmake -G "Unix Makefiles" ../
$ make
No comments:
Post a Comment