gisbi-kim / SC-A-LOAM

Robust LiDAR SLAM with a versatile plug-and-play loop closing and pose-graph optimization.
438 stars 95 forks source link

Build error on ceres-solver #25

Open bkkim opened 1 year ago

bkkim commented 1 year ago

I installed dependencies in advance to build sc-a-loam. And I run catkin_make as how to use, and then the error occurs as shown below.

Running command: "make cmake_check_build_system" in "/home/kbk/catkin_scaloam_ws/build"

Running command: "make -j8 -l8" in "/home/kbk/catkin_scaloam_ws/build"

[ 18%] Building CXX object SC-A-LOAM/CMakeFiles/alaserMapping.dir/src/laserMapping.cpp.o [ 18%] Building CXX object SC-A-LOAM/CMakeFiles/alaserOdometry.dir/src/laserOdometry.cpp.o [ 45%] Building CXX object SC-A-LOAM/CMakeFiles/alaserPGO.dir/src/laserPosegraphOptimization.cpp.o [ 45%] Built target kittiHelper [ 63%] Built target ascanRegistration 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/kbk/catkin_scaloam_ws/src/SC-A-LOAM/src/laserMapping.cpp:54: /usr/local/include/ceres/jet.h:1423:8: error: ‘ScalarBinaryOpTraits’ is not a class template struct ScalarBinaryOpTraits<ceres::Jet<T, N>, T, BinaryOp> { ^~~~~~~~

Have any idea for it?