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);
I couldn't manage to solve this issue, any idea about it?
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);
I couldn't manage to solve this issue, any idea about it?