When building elevation mapping on melodic
Errors << elevation_mapping:make /home/six/ws_em/logs/elevation_mapping/build.make.001.log
In file included from /home/six/ws_em/src/elevation_mapping/elevation_mapping/src/PointXYZRGBConfidenceRatio.cpp:12:0:
/home/six/ws_em/src/elevation_mapping/elevation_mapping/include/elevation_mapping/PointXYZRGBConfidenceRatio.hpp:32:3: error: ‘PCL_MAKE_ALIGNED_OPERATOR_NEW’ does not name a type; did you mean ‘EIGEN_MAKE_ALIGNED_OPERATOR_NEW’?
PCL_MAKE_ALIGNED_OPERATOR_NEW
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
make[2]: *** [CMakeFiles/elevation_mapping_pcl_types.dir/src/PointXYZRGBConfidenceRatio.cpp.o] Error 1
make[1]: *** [CMakeFiles/elevation_mapping_pcl_types.dir/all] Error 2
make: *** [all] Error 2
Solution:
Change the file as suggested by the error and rebuild.
解决PCL编译错误
本文介绍了一种在使用PCL(Point Cloud Library)过程中遇到的编译错误,并给出了具体的解决方案。错误出现在PointXYZRGBConfidenceRatio.cpp文件中,涉及到PCL_MAKE_ALIGNED_OPERATOR_NEW宏定义的问题。通过将错误提示中提到的宏定义更改为EIGEN_MAKE_ALIGNED_OPERATOR_NEW并重新编译,可以成功解决问题。
3227

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



