https://github.com/libLAS/libLAS/issues/102
https://liblas.org/start.htmlhtml
https://github.com/libLAS/libLAS/archive/1.8.1.tar.gzgit
默認 GEOTIFF_LIBRARY 位於 /usr/local/lib/libgeotiff.so
GEOTIFF_INCLUDE_DIR 位於 /usr/local/include
若是不是,則須要將相應位置添加到環境變量中github
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" ../
以後的部分命令shell
wget https://download.osgeo.org/geotiff/libgeotiff/libgeotiff-1.3.0.tar.gz # 解壓後 ./configure make sudo make install
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.rpmapp