liblas 1.8.1编译安装

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

猜你喜欢

转载自www.cnblogs.com/yes-V-can/p/9126248.html