Cmake error: the source directory “opencv installation directory” does not appear to contain cmakelists.txt
I want to build opencv 4.5.0 in Ubuntu 20.04 this morning; In the C + + environment, I tried to learn opencv in the Linux system, but I was not familiar with the use of Linux system. I was puzzled by one step in building the environment, and the error was as follows:
Cmake error: the source directory “opencv installation directory” does not appear to contain cmakelists.txt
In Baidu search, we found many solutions provided by big men. After some attempts, we failed collectively. After carefully studying the reasons for the error and checking our opencv installation directory, we found that the specific path of our cmakelists.txt
is "home"/ ××××/ Opencv/opencv master/cmakelists.txt "
instead of " home/ ×××/ Opencv/cmakelists. TXT "
, finally found the cause of the error and solved the problem. Therefore, I hope this article can help some beginners like me. Thank you for your support!
Read More:
- CMake Error: The source directory “*” does not appear to contain CMakeLists.txt.
- CMake Error: The source directory “/home/Demo1“ does not appear to contain CMakeLists.txt.
- CMake Error at CMakeLists.txt:5 (PROJECT): The CMAKE_C_COMPILER: cl is not a full path
- The CXX compiler identification is unknown CMake Error at CMakeLists.txt:11 (project):
- Visual slam Lesson 6: curve fitting with g2o, error: cmake error at CMakeList.txt (find_ package) By not providing“FindG2O.cmake“
- Project files may be invalid appears when cmake compiles opencv3.1, and the debug additional dependency of the compiled opencv3.1 is at the end
- Cmake compile opencv report error qtcore_ DIR QtOpenglDIR QtGui_ Dir ffmpeg loading failed
- Clion appears cmake error: could not find cmake_ Root! What is the problem and how to solve it?
- Error resolution-“Error in configuration process, project files may be invalid” appears when Cmake compiles openCV
- CMake Error: Could not find CMAKE_ROOT !!!
- Brief introduction of cmake generating all in vs Project_ BUILD、INSTALL、ZERO_ Check function!!
- [opencv + openvino] opencv-vino4.5.1 + opencv contrib installation
- Errno 21] Is a directory: ‘./widerface_txt/0–Parade/.ipynb_checkpoints‘
- “Error! Reference source not found.” “error! Reference source not found solution to problem for
- Opencv perfect configuration strategy 2015 (win7 + opencv 2.4.9 + vs 2013)
- CMake Error:Could not find CMAKE_ROOT!!!
- Opencv problem: opencv error: assertion failed (! Empty()) in detectmultiscale
- “Error! Reference source not found.” “error! The source of the problem was not found
- JOM error 2 problem when qtcreator uses cmake to build a project