raulmur / ORB_SLAM2

Real-Time SLAM for Monocular, Stereo and RGB-D Cameras, with Loop Detection and Relocalization Capabilities
Other
9.17k stars 4.69k forks source link

Fix cmake to work with new version of opencv please? I have 4.5.4 #1092

Open KirkPen opened 11 months ago

KirkPen commented 11 months ago

kirk@Ubuntu-22:~/dev/ORB_SLAM2/build$ cmake .. -DCMAKE_BUILD_TYPE=Release CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake.

Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions.

Build type: Release -- Using flag -std=c++11. CMake Error at CMakeLists.txt:35 (message): OpenCV > 2.4.3 not found.

-- Configuring incomplete, errors occurred! See also "/home/kirk/dev/ORB_SLAM2/build/CMakeFiles/CMakeOutput.log".

zoldaten commented 9 months ago
~/ORB_SLAM2$ nano CMakeLists.txt
    find_package(OpenCV 4.0 QUIET)