m0_56250522 2023-01-17 09:51 采纳率: 50%
浏览 437
已结题

Makefile:145: recipe for target 'all' failedmake: *** [all] Error 2Invoking "make -j8 -l8" failed

安装ALOAM 使用catkin-make时出现Makefile:145: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j8 -l8" failed
问题相关代码:

/home/jetson/catkin_ws/src/A-LOAM/src/laserOdometry.cpp: In function ‘int main(int, char**)’:
/home/jetson/catkin_ws/src/A-LOAM/src/laserOdometry.cpp:285:28: error: ‘LocalParameterization’ is not a member of ‘ceres’
ceres::LocalParameterization *q_parameterization =
^~~~~~~~~~~~~~~~~~~~~
/home/jetson/catkin_ws/src/A-LOAM/src/laserOdometry.cpp:285:51: error: ‘q_parameterization’ was not declared in this scope
ceres::LocalParameterization *q_parameterization =
^~~~~~~~~~~~~~~~~~
/home/jetson/catkin_ws/src/A-LOAM/src/laserOdometry.cpp:286:29: error: expected type-specifier
new ceres::EigenQuaternionParameterization();
^~~~~
/home/jetson/catkin_ws/src/A-LOAM/src/laserMapping.cpp: In function ‘void process()’:
/home/jetson/catkin_ws/src/A-LOAM/src/laserMapping.cpp:566:13: error: ‘LocalParameterization’ is not a member of ‘ceres’
ceres::LocalParameterization *q_parameterization =
^~~~~~~~~~~~~~~~~~~~~
/home/jetson/catkin_ws/src/A-LOAM/src/laserMapping.cpp:566:36: error: ‘q_parameterization’ was not declared in this scope
ceres::LocalParameterization *q_parameterization =
^~~~~~~~~~~~~~~~~~
/home/jetson/catkin_ws/src/A-LOAM/src/laserMapping.cpp:566:36: note: suggested alternative: ‘parameters’
ceres::LocalParameterization *q_parameterization =
^~~~~~~~~~~~~~~~~~
parameters
/home/jetson/catkin_ws/src/A-LOAM/src/laserMapping.cpp:567:11: error: expected type-specifier
new ceres::EigenQuaternionParameterization();
^~~~~
A-LOAM/CMakeFiles/alaserOdometry.dir/build.make:75: recipe for target 'A-LOAM/CMakeFiles/alaserOdometry.dir/src/laserOdometry.cpp.o' failed
make[2]: *** [A-LOAM/CMakeFiles/alaserOdometry.dir/src/laserOdometry.cpp.o] Error 1
CMakeFiles/Makefile2:4191: recipe for target 'A-LOAM/CMakeFiles/alaserOdometry.dir/all' failed
make[1]: *** [A-LOAM/CMakeFiles/alaserOdometry.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

  • 写回答

3条回答 默认 最新

  • 蒜蓉味小龙虾 2023-02-21 21:04
    关注

    使用的cere版本太高了,aloam使用的是低版本cere,新版本中改了上述提到的那些东西,所以编译时找不到

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

问题事件

  • 系统已结题 4月6日
  • 已采纳回答 3月29日
  • 创建了问题 1月17日