pcl吧 关注:128贴子:431
  • 0回复贴,共1

PCL编译出问题

只看楼主收藏回复

安装PCL1.7的时候发现apt安装方法出现update不了,忽略或者报错,更换源也没有用,于是选择了自己编译。编译的时候出现如下报错信息。有大佬能给指导一下么?


/home/dhk/pcl/common/include/pcl/impl/point_types.hpp: In member function ‘const Eigen::Map<const Eigen::Matrix<float, 4, 1>, 16> pcl::_PointSurfel::getNormalVector4fMap() const’:
/home/dhk/pcl/common/include/pcl/impl/point_types.hpp:1429:5: error: could not convert ‘Eigen::PlainObjectBase<Derived>::MapAligned(const Scalar*) [with Derived = Eigen::Matrix<float, 4, 1>; Eigen::PlainObjectBase<Derived>::ConstAlignedMapType = const Eigen::Map<const Eigen::Matrix<float, 4, 1>, 32, Eigen::Stride<0, 0> >; Eigen::PlainObjectBase<Derived>::Scalar = float]()’ from ‘Eigen::PlainObjectBase<Eigen::Matrix<float, 4, 1> >::ConstAlignedMapType {aka const Eigen::Map<const Eigen::Matrix<float, 4, 1>, 32, Eigen::Stride<0, 0> >}’ to ‘const Eigen::Map<const Eigen::Matrix<float, 4, 1>, 16>’
PCL_ADD_NORMAL4D; // This adds the member normal[3] which can also be acces
^
common/CMakeFiles/pcl_common.dir/build.make:62: recipe for target 'common/CMakeFiles/pcl_common.dir/src/point_types.cpp.o' failed
make[2]: *** [common/CMakeFiles/pcl_common.dir/src/point_types.cpp.o] Error 1
CMakeFiles/Makefile2:118: recipe for target 'common/CMakeFiles/pcl_common.dir/all' failed
make[1]: *** [common/CMakeFiles/pcl_common.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2


回复
1楼2019-03-15 10:33