if using Ubuntu 20.04 and ROS Noetic, after Install GTSAM following readme and catkin_make error, need to :
Configure the utility.h to use #include <opencv2/opencv.hpp> instead of #include <opencv/cv.h>
Configure CMakeLists.txt to use set(CMAKE_CXX_FLAGS "-std=c++14") instead of set(CMAKE_CXX_FLAGS "-std=c++11")
Move #include <opencv2/opencv.hpp> after the pcl headers
and if you have error:
neor_mini/mini_sim18_ws/src/LeGO-LOAM/LeGO-LOAM/include/utility.h:11:10: fatal error: cloud_msgs/cloud_info.h: No such file or directory
11 | #include "cloud_msgs/cloud_info.h"
just add option -DCATKIN_WHITELIST_PACKAGES="cloud_msgs"
solved by install gtsam
and install the dependence of the lio_sam,follow as below:
if using Ubuntu 20.04 and ROS Noetic, after Install GTSAM following readme and catkin_make error, need to :
and if you have error:
just add option -DCATKIN_WHITELIST_PACKAGES="cloud_msgs"
after that, you can "catkin_make" as usual.