安装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....