提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档
一、libtiff安装
如果提示error:failed to link with -ltiff to find TIFFOpen
首先检查是否安装:
whrereis tiffinfo
如果输出地址为空,则说明没有安装。
sudo apt-get install libtiff-dev
一、GeoTiff安装
liblas库依赖于GeoTiff软件,需要先安装GeoTiff。
rm config.status
./configure --with-libtiff=/usr/local --host=arm-linux --build=arm-linux --prefix=/usr
make clean
make
sudo make install
如果报错提示找不到命令,查看configure文件权限,如果没有可执行权限,则
chmod 744 configure
二、liblas安装
1.引入库
下载安装包并解压
mkdir build
cd build
cmake ..
make
sudo make install
目前测试的版本是Boost_1.66版本,CentOS7.18版本中的Boost_1.53,编译会出现如下的错误:
test.cpp:15:58: error: no matching function for call to ‘call_once(boost::_bi::bind_t<void, boost::_mfi::mf0<void, TestA>, boost::_bi::list1<boost::_bi::value<TestA*> > >, boost::once_flag&)’ boost::call_once(boost::bind(&TestA::test, this), flag);
中文错误:
test.cpp:15:58: 错误:对‘call_once(boost::_bi::bind_t<void, boost::_mfi::mf0<void, TestA>, boost::_bi::list1<boost::_bi::value<TestA*> > >, boost::once_flag&)’的调用没有匹配的函数