CMake error for OpenCV compilation in Windows

I am trying to build the files in the "Source" folder to the "Build" folder using CMake in order to build OpenCV program in Eclipse. But I am facing the following error:

The C++ compiler "C:/MinGW/bin/g++.exe" is not able to compile a simple test program. It fails with the following output: Change Dir: C:/opencv/mbuild/CMakeFiles/CMakeTmp Run Build Command:"C:/CMake/bin/cmake.exe" "cmTC_03910/fast" CMake Error: The source directory "C:/opencv/mbuild/CMakeFiles/CMakeTmp/cmTC_03910/fast" does not exist. Specify --help for usage, or press the help button on the CMake GUI. CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:93 (project)

I have installed MinGW several times along with CMake also, but still getting the same error.

Please help me out!! Thanks in advance

- - Source


answered 2 year ago user2907116 #1

As mentioned at this tutorial PyIMageSearch opencv install if you are using opencv version 3.1 you should set -D INSTALL_C_EXAMPLES=OFF \ instead ON I solved problem with this way

comments powered by Disqus