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

Ubuntu 20.04 | Ros Noetic | make -j16 -l16" failed #21

Open ihsan-cu opened 1 year ago

ihsan-cu commented 1 year ago

I'm trying to build and install SC-A-LOAM on Ubuntu 20.04 and ROS Noetic.

I had two main errors after I run catkin_make, Errors are as below: 1) fatal error: opencv/cv.h: No such file or directory 44 | #include <opencv/cv.h>

I solved this error by editing "scanRegistration.cpp" file, I write #include <opencv2/opencv.hpp> instead of #include <opencv/cv.h> I also changed set(CMAKE_CXX_FLAGS "-std=c++14") instead of set(CMAKE_CXX_FLAGS "-std=c++11") in CMakeLists.txt

2) error: ‘CV_LOAD_IMAGE_GRAYSCALE’ was not declared in this scope 91 | cv::Mat left_image = cv::imread(left_image_path.str(), CV_LOAD_IMAGE_GRAYSCALE); image

I couldn't manage to solve this issue, any idea about it?

HenryP301 commented 1 year ago

try to replace CV_LOAD_IMAGE_GRAYSACLE with cv::IMREAD_GRAYSCALE I also had another error: try to replace CV_LOAD_IMAGE_COLOR with cv::IMREAD_COLOR