编译rs_to_velodyne-master报错

编译rs_to_velodyne-master时,出现以下错误:

/usr/include/pcl-1.10/pcl/point_types.h:574:1: error: ‘plus’ is not a member of ‘pcl::traits’
  574 | POINT_CLOUD_REGISTER_POINT_STRUCT (pcl::CPPFSignature,

/usr/include/pcl-1.10/pcl/point_types.h:588:1: error: ‘plusscalar’ is not a member of ‘pcl::traits’
  588 | POINT_CLOUD_REGISTER_POINT_STRUCT (pcl::PPFRGBSignature,

/usr/include/pcl-1.10/pcl/point_types.h:588:1: error: ‘type’ is not a member of ‘pcl::traits::datatype::decomposed’ {aka ‘pcl::traits::decomposeArray’}

/usr/include/pcl-1.10/pcl/point_types.h:588:1: error: ‘plusscalar’ is not a member of ‘pcl::traits’
  588 | POINT_CLOUD_REGISTER_POINT_STRUCT (pcl::PPFRGBSignature,

......

编译rs_to_velodyne-master报错_第1张图片编译rs_to_velodyne-master报错_第2张图片

编译rs_to_velodyne-master报错_第3张图片

编译rs_to_velodyne-master报错_第4张图片 编译rs_to_velodyne-master报错_第5张图片

 解决方法:

 在对应程序包的CMakeLists.txt中加入一行代码即可顺利编译。

set(CMAKE_CXX_STANDARD 14)

编译其他包时出现相同的错误时,也可以用同样的方法哦!

你可能感兴趣的:(#,A-LOAM,slam,ubuntu)