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

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日

悬赏问题

  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探
  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么