MegviiRobot / CamLaserCalibraTool

Extrinsic Calibration of a Camera and 2d Laser
BSD 3-Clause "New" or "Revised" License
661 stars 200 forks source link

catkin_make 错误 #13

Closed hushunda closed 4 years ago

hushunda commented 4 years ago

我在catkin_make的时候,出现了没有cere的问题. 然后我安装cere按照 http://www.ceres-solver.org/installation.html的方法. 我是ubuntu16.04的系统.但是再次catkin_make后出现以下问题. 不知道是什么原因?

[ 2%] Built target actionlib_msgs_generate_messages_eus [ 2%] Built target lasercamcal_ros_generate_messages_py [ 2%] Built target sensor_msgs_generate_messages_eus [ 2%] Built target actionlib_msgs_generate_messages_cpp [ 2%] Built target actionlib_generate_messages_nodejs [ 2%] Built target lasercamcal_ros_generate_messages_cpp [ 2%] Built target lasercamcal_ros_generate_messages_nodejs [ 2%] Built target lasercamcal_ros_generate_messages_lisp [ 5%] Built target lasercamcal_ros_generate_messages_eus [ 5%] Built target lasercamcal_ros_generate_messages In file included from /usr/local/include/ceres/internal/autodiff.h:152:0, from /usr/local/include/ceres/autodiff_cost_function.h:130, from /usr/local/include/ceres/ceres.h:37, from /home/zjrobot/robot_perception/laser_cam_calibration/LaserCameraCal_ws/src/CamLaserCalibraTool/src/LaseCamCalCeres.cpp:11: /usr/local/include/ceres/jet.h:981:8: error: ‘ScalarBinaryOpTraits’ is not a class template struct ScalarBinaryOpTraits<ceres::Jet<T, N>, T, BinaryOp> { ^ /usr/local/include/ceres/jet.h:985:58: error: type/value mismatch at argument 3 in template parameter list for ‘template<class BinaryOp, class T, int N> struct Eigen::ScalarBinaryOpTraits’ struct ScalarBinaryOpTraits<T, ceres::Jet<T, N>, BinaryOp> { ^ /usr/local/include/ceres/jet.h:985:58: note: expected a constant of type ‘int’, got ‘BinaryOp’ CamLaserCalibraTool/CMakeFiles/lasercamcal.dir/build.make:662: recipe for target 'CamLaserCalibraTool/CMakeFiles/lasercamcal.dir/src/LaseCamCalCeres.cpp.o' failed make[2]: [CamLaserCalibraTool/CMakeFiles/lasercamcal.dir/src/LaseCamCalCeres.cpp.o] Error 1 CMakeFiles/Makefile2:534: recipe for target 'CamLaserCalibraTool/CMakeFiles/lasercamcal.dir/all' failed make[1]: [CamLaserCalibraTool/CMakeFiles/lasercamcal.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2