1. pcl库的安装
pcl1.8
安装系统:ubuntu 18.04
安装教程。
遇到的问题:
问题1:make失败对‘boost::gregorian::greg_month::as_long_string() const’未定义的引用
CMakeFiles/pcl_openni_pcd_recorder.dir/openni_pcd_recorder.cpp.o:在函数‘boost::date_time::month_formatter<boost::gregorian::greg_month, boost::date_time::iso_format<char>, char>::format_month(boost::gregorian::greg_month const&, std::ostream&)’中:
openni_pcd_recorder.cpp:(.text._ZN5boost9date_time15month_formatterINS_9gregorian10greg_monthENS0_10iso_formatIcEEcE12format_monthERKS3_RSo[_ZN5boost9date_time15month_formatterINS_9gregorian10greg_monthENS0_10iso_formatIcEEcE12format_monthERKS3_RSo]+0x31):对‘boost::gregorian::greg_month::as_short_string() const’未定义的引用
openni_pcd_recorder.cpp:(.text._ZN5boost9date_time15month_formatterINS_9gregorian10greg_monthENS0_10iso_formatIcEEcE12format_monthERKS3_RSo[_ZN5boost9date_time15month_formatterINS_9gregorian10greg_monthENS0_10iso_formatIcEEcE12format_monthERKS3_RSo]+0x54):对‘boost::gregorian::greg_month::as_long_string() const’未定义的引用
collect2: error: ld returned 1 exit status
io/tools/CMakeFiles/pcl_openni_pcd_recorder.dir/build.make:231: recipe for target 'bin/pcl_openni_pcd_recorder' failed
make[2]: *** [bin/pcl_openni_pcd_recorder] Error 1
CMakeFiles/Makefile2:831: recipe for target 'io/tools/CMakeFiles/pcl_openni_pcd_recorder.dir/all' failed
make[1]: *** [io/tools/CMakeFiles/pcl_openni_pcd_recorder.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2
问题原因:这个问题是由于我删除旧版本的pcl库时误删别的文件造成的。
解决办法:重装系统