1. 程式人生 > >liblas 1.8.1編譯安裝

liblas 1.8.1編譯安裝

查找 pro mbo mman app eve download com mkdir

liblas

https://github.com/libLAS/libLAS/issues/102
https://liblas.org/start.html

源碼

https://github.com/libLAS/libLAS/archive/1.8.1.tar.gz

默認 GEOTIFF_LIBRARY 位於 /usr/local/lib/libgeotiff.so
GEOTIFF_INCLUDE_DIR 位於 /usr/local/include
如果不是,則需要將相應位置添加到環境變量中

開始編譯安裝

sudo yum install cmake boost boost-devel # 依賴
cd liblas
mkdir makefiles
cd makefiles
cmake -G "Unix Makefiles" ../ 
make
make install
lasinfo ../test/data/TO_core_last_clip.las # test

如果cmake -G "Unix Makefiles" ../出現 Unable to find sufficient GeoTIFF, 安裝libgeotiff-1.3.0,見下面操作
若出現錯誤libpthread.so.0 error adding symbols dso missing from command line
找到apps/CMakefiles/las2col.dir/link.txt, 在最後面添加 -lpthread (這一步費了很長時間去查找解決方案)
然後,重新執行cmake -G "Unix Makefiles" ../之後的部分命令

安裝libgeotiff-1.3.0

wget https://download.osgeo.org/geotiff/libgeotiff/libgeotiff-1.3.0.tar.gz
# 解壓後
./configure
make
sudo make install

libgeotiff-1.2.5

http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/l/libgeotiff-1.2.5-14.el7.x86_64.rpm
http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/l/libgeotiff-devel-1.2.5-14.el7.x86_64.rpm

liblas 1.8.1編譯安裝