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

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

Open
KirkPen opened this issue Jul 30, 2023 · 1 comment
Open

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

KirkPen opened this issue Jul 30, 2023 · 1 comment

Comments

@KirkPen
Copy link

KirkPen commented Jul 30, 2023

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

zoldaten commented Sep 2, 2023

~/ORB_SLAM2$ nano CMakeLists.txt
    find_package(OpenCV 4.0 QUIET)

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