HKUST-Aerial-Robotics / VINS-Mono

A Robust and Versatile Monocular Visual-Inertial State Estimator
GNU General Public License v3.0
4.84k stars 2.07k forks source link

cv_bridge build error #376

Open ghost opened 3 years ago

ghost commented 3 years ago

When I built this repo, I got the following error. How can I fix it?

==> add_subdirectory(VINS-Mono/ar_demo) CMake Error at /opt/ros/melodic/share/cv_bridge/cmake/cv_bridgeConfig.cmake:113 (message): Project 'cv_bridge' specifies '/usr/include/opencv' as an include dir, which is not found. It does neither exist as an absolute directory nor in '${{prefix}}//usr/include/opencv'. Check the issue tracker 'https://github.com/ros-perception/vision_opencv/issues' and consider creating a ticket if the problem has not been reported yet. Call Stack (most recent call first): /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:76 (find_package) VINS-Mono/ar_demo/CMakeLists.txt:9 (find_package)

hjysgdka commented 3 years ago

I have the same question with you and I guess it is because opencv wasn't installed properly.