CMake Warning at CMakeLists.txt:33 (find_package):
Could not find a configuration file for package "OpenCV" that is compatible
with requested version "4.4".
The following configuration files were considered but not accepted:
/usr/share/OpenCV/OpenCVConfig.cmake, version: 3.2.0
CMake Error at CMakeLists.txt:35 (message):
OpenCV > 4.4 not found.
-- Configuring incomplete, errors occurred!
See also "/home/tys/ORB_SLAM3/build/CMakeFiles/CMakeOutput.log".
make: *** No target specified and no makefile found. Stop.
The content of the error report is as above. I found a solution, and there is a solution available.
LIST(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake_modules)
find_package(OpenCV 4.4)
if(NOT OpenCV_FOUND)
message(FATAL_ERROR "OpenCV > 4.4 not found.")
endif()
Find the above location in CMakeList.txt in the ORB_SLAM3 folder and modify
find_package(OpenCV 4.4), as shown in the following code.
LIST(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake_modules)
find_package(OpenCV 3 REQUIRED)
if(NOT OpenCV_FOUND)
message(FATAL_ERROR "OpenCV > 4.4 not found.")
endif()
Normal, so that the fault can be solved.
Read More:
- ORB-SLAM3 Compile Error: recipe for target ‘CMakeFiles/ORB_SLAM3.dir/src/LocalMapping.cc.o‘ failed
- [Solved] Cmake compile opencv open-source project Error: but it set OpenCV_FOUND to FALSE so package “OpenCV” is considered to be…
- [Solved] Opencv Compile Error: (CMake Error: The following variables are used in this project, but they are set to not)
- [Solved] MacOS Compile ffmpeg Error: ERROR: openssl not found
- Cmake Compile opencv error: The system is: Windows – 10.0.19042 – AMD64 (Log File)
- [Solved] Compile Error: AAPT: error: resource android:attr/lStar not found
- Opencv Can not Find opencv2/gpu/gpu.hpp [How to Solve]
- [Solved] MAC Compile Error: fatal error: ‘endian.h‘ file not found
- CMake Error: The source directory “opencv Install Catalog“ does not appear to contain CMakeLists.txt.
- [Solved] Rust Compile Error: error: linker `cc` not found
- [Solved] Opencv3. X fatal error: opencv2/nonfree/nonfree.hpp: there is no such file or directory
- [Solved] A-LOAM Ceres Compile Error: error: ‘integer_sequence’ is not a member of ‘std‘
- [Solved] OpenCV error: #error “This header with legacy C API declarations has been removed from OpenCV.
- [Solved] Opencv Calls PB Model Error: cv2.error: OpenCV(4.2.0)…
- [Solved] QT cmak Compile Error: CMake Error: The source.. does not match the soused
- [Solved] OpenCV ERROR: The minSdk version should not be declared in the android manifest file
- [Solved] Android Studio Compile Error: Could not determine java version from ‘11.0.8‘.
- [Solved] OpenCV VideoWriter Error: FFMPEG: tag ‘MP4V‘ is not supported with codec id 12 and format mp4
- Apache Altas Compile Error: [ERROR] Failed to execute goal on project atlas-testtools: Could not resolve
- Postgis Install Error: could not load library “C:\……“:The specified module could not be found.