ORB_SLAM2
ORB_SLAM2 copied to clipboard
Cmake: OpenCV > 2.4.3 not found. , but via pip: opencv-contrib-python (3.4.0.12) is installed
hello, not sure what shall I do?
cmake cannot find opencv, which I installed for python2 and 3 via pip and the version is:
opencv-contrib-python (3.4.0.12)
How to set path to opencv pip package correctly? Or do I need to recompile opencv from source?
Error message by Cmake:
-- Using flag -std=c++11.
CMake Error at CMakeLists.txt:35 (message):
OpenCV > 2.4.3 not found.
https://blog.csdn.net/gxsheen/article/details/79090454
Having same issue with OpenCV > 2.4.3 not found.
https://blog.csdn.net/gxsheen/article/details/79090454
It WORKS!!!
https://blog.csdn.net/gxsheen/article/details/79090454
This really works.
Could someone provide/explain the steps from the blog please? I don't understand and I've searched every other answer on the web
nvm, I got it - had to add my openCV directory to Thirdparty/DBoW2/CMakeLists.txt
i.e. had to find my openCV directory. For me it was in /usr/local/include/opencv4.
Then I just added SET (OpenCV_DIR /usr/local/include/opencv4)
to my CMakeLists.txt file.
Same error message for me in January 2021. In my case, the issue was that I just installed the latest OpenCV (as of January 2021 - OpenCV 4.5.1), but versions above OpenCV 3 are not accepted. So I downloaded and installed the latest version starting with 3 (3.4.13), and this error message has gone. (Unfortunately, I personally have other error messages now :) But at least this one seems to be solved.)
nvm, I got it - had to add my openCV directory to Thirdparty/DBoW2/CMakeLists.txt
i.e. had to find my openCV directory. For me it was in /usr/local/include/opencv4. Then I just added
SET (OpenCV_DIR /usr/local/include/opencv4)
to my CMakeLists.txt file.
i can't added 'SET (OpenCV_DIR /usr/local/include/opencv4)' because the file are only to read, I tried with chmod but it's the same
nvm, I got it - had to add my openCV directory to Thirdparty/DBoW2/CMakeLists.txt i.e. had to find my openCV directory. For me it was in /usr/local/include/opencv4. Then I just added
SET (OpenCV_DIR /usr/local/include/opencv4)
to my CMakeLists.txt file.i can't added 'SET (OpenCV_DIR /usr/local/include/opencv4)' because the file are only to read, I tried with chmod but it's the same
use sudo to edit CMakeLists.txt
if you are using vim type sudo vim CMakeLists.txt
SET (OpenCV_DIR /usr/local/include/opencv4) where do I put it? I did already add it but same error occurs