hku-mars / loam_livox

A robust LiDAR Odometry and Mapping (LOAM) package for Livox-LiDAR
GNU General Public License v2.0
1.42k stars 435 forks source link

Invoking "make -j16 -l16" failed #128

Open Zhangjyhhh opened 1 year ago

Zhangjyhhh commented 1 year ago

on ubuntu 18.04,i use ceres 1.14.0 version, pcl :1.19.1. when I execute "catkin_making",error happpens like this: `(base) zjy@zjy-QiTianM435-N000:~/catkin_ws$ catkin_make Base path: /home/zjy/catkin_ws Source space: /home/zjy/catkin_ws/src Build space: /home/zjy/catkin_ws/build Devel space: /home/zjy/catkin_ws/devel Install space: /home/zjy/catkin_ws/install

Running command: "make cmake_check_build_system" in "/home/zjy/catkin_ws/build"

Running command: "make -j16 -l16" in "/home/zjy/catkin_ws/build"

Consolidate compiler generated dependencies of target livox_laserMapping Consolidate compiler generated dependencies of target read_camera [ 33%] Built target read_camera [ 66%] Built target livox_scanRegistration [ 83%] Linking CXX executable /home/zjy/catkin_ws/devel/lib/loam_livox/livox_laserMapping CMakeFiles/livox_laserMapping.dir/source/laser_mapping.cpp.o:在函数‘Maps_keyframe::max_similiarity_of_two_image_opencv(Eigen::Matrix<float, -1, -1, 0, -1, -1> const&, Eigen::Matrix<float, -1, -1, 0, -1, -1> const&, int)’中: /home/zjy/catkin_ws/src/loam_livox/source/cell_map_keyframe.hpp:1214:对‘cv::Mat::Mat()’未定义的引用 /home/zjy/catkin_ws/src/loam_livox/source/cell_map_keyframe.hpp:1214:对‘cv::Mat::Mat()’未定义的引用 /home/zjy/catkin_ws/src/loam_livox/source/cell_map_keyframe.hpp:1220:对‘cv::Mat::Mat()’未定义的引用 /home/zjy/catkin_ws/src/loam_livox/source/cell_map_keyframe.hpp:1226:对‘cv::Mat::Mat()’未定义的引用 CMakeFiles/livox_laserMapping.dir/source/laser_mapping.cpp.o:在函数‘Maps_keyframe::max_similiarity_of_two_image(Eigen::Matrix<float, -1, -1, 0, -1, -1> const&, Eigen::Matrix<float, -1, -1, 0, -1, -1> const&, float)’中: /home/zjy/catkin_ws/src/loam_livox/source/cell_map_keyframe.hpp:1172:对‘cv::Mat::Mat()’未定义的引用 CMakeFiles/livox_laserMapping.dir/source/laser_mapping.cpp.o:/home/zjy/catkin_ws/src/loam_livox/source/cell_map_keyframe.hpp:1172: 跟着更多未定义的参考到 cv::Mat::Mat() collect2: error: ld returned 1 exit status loam_livox/CMakeFiles/livox_laserMapping.dir/build.make:451: recipe for target '/home/zjy/catkin_ws/devel/lib/loam_livox/livox_laserMapping' failed make[2]: [/home/zjy/catkin_ws/devel/lib/loam_livox/livox_laserMapping] Error 1 CMakeFiles/Makefile2:2037: recipe for target 'loam_livox/CMakeFiles/livox_laserMapping.dir/all' failed make[1]: [loam_livox/CMakeFiles/livox_laserMapping.dir/all] Error 2 Makefile:145: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j16 -l16" failed`