在安装pcl1.18.0这个版本时对应的boost版本出现了一些问题:
1.对应boost1.58时出现undefined reference to `boost::filesystem::path_traits::dispatch(boost::filesystem::directory_entry const&, std::string&)'
2.把boost换成1.68时出现fatal error: boost/uuid/sha1.hpp: No such file or directory。这个问题已经在pcl的github上有解释说明
https://github.com/PointCloudLibrary/pcl/issues/2682
所以只能继续换其他版本的boost
经过尝试,boost1.63可以和pcl1.18.0配合。
pcl是源码安装的,只需要删除/usr/local/lib/libboost_* 和/usr/local/include/boost,然后冲重新源码安装pcl。