在按照pcl官网上的Ubuntu16 安装步骤(https://larrylisky.com/2016/11/03/point-cloud-library-on-ubuntu-16-04-lts/),编译安装pcl的源码时候,报错出现如下问题:
../../lib/libpcl_visualization.so.1.9.0:对‘boost::filesystem::path_traits::dispatch(boost::filesystem::directory_entry const&, std::string&)’未定义的引用
collect2: error: ld returned 1 exit status
visualization/tools/CMakeFiles/pcl_hdl_viewer_simple.dir/build.make:140: recipe for target 'bin/pcl_hdl_viewer_simple' failed
make[2]: *** [bin/pcl_hdl_viewer_simple] Error 1
CMakeFiles/Makefile2:1170: recipe for target 'visualization/tools/CMakeFiles/pcl_hdl_viewer_simple.dir/all' failed
make[1]: *** [visualization/tools/CMakeFiles/pcl_hdl_viewer_simple.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
根据提示推断出来,这个问题是boost的问题,需要将boost的版本更新一下,但是在Ubuntu中

在Ubuntu 16.04上安装PCL1.8时遇到与boost1.58的冲突,导致编译错误。为解决此问题,需要手动下载boost1.60源码,编译并安装。步骤包括删除旧版boost(谨慎操作),下载源码,解压,查看编译模块,选择并编译,最后复制头文件到相应目录。完成这些步骤后,可以重新尝试安装PCL1.8。
最低0.47元/天 解锁文章
1682

被折叠的 条评论
为什么被折叠?



