Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ihsan-cu opened this issue Jan 2, 2023 · 1 comment
Open

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

ihsan-cu opened this issue Jan 2, 2023 · 1 comment

Comments

@ihsan-cu
Copy link

ihsan-cu commented Jan 2, 2023

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

  1. 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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants