I try to install additional modules in opencv_contrib, but I get errors all the time when I try to configure in CMake.
These are the steps that I have done so far:
- Loaded opencv and opencv_contrib from github.
- Insert the modules I want from opencv_contrib into opencv / modules.
- Created a build folder in opencv,
here.
- In CMake gui, I installed the source code in C: /opencv-3.1.0-dev and installed the build folder in the build folder contained in C: /opencv-3.1.0-dev.
- After clicking configure, I install the generator for the project as visual studio 15.
- I have defined my own C and C ++ compilers:
C: / Program Files (x86) / Microsoft Visual Studio 14.0 / VC / bin / cl.exe
When I confirm this and improve the configuration, I get this error:
The CXX compiler identification is unknown
The C compiler identification is unknown
Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
CMake Error: Generator: execution of make failed. Make command was: "MSBuild.exe" "cmTC_7c114.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=15.0"
Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
CMake Error at C:/Program Files/CMake/share/cmake-3.7/Modules/CMakeTestCXXCompiler.cmake:44 (message):
The C++ compiler "C:/Program Files (x86)/Microsoft Visual Studio
14.0/VC/bin/cl.exe" is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/opencv-3.1.0-dev/build/CMakeFiles/CMakeTmp
Run Build Command:"MSBuild.exe" "cmTC_7c114.vcxproj"
"/p:Configuration=Debug" "/p:VisualStudioVersion=15.0"
Generator: execution of make failed. Make command was: "MSBuild.exe"
"cmTC_7c114.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=15.0"
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:98 (project)
Configuring incomplete, errors occurred!
See also "C:/opencv-3.1.0-dev/build/CMakeFiles/CMakeOutput.log".
See also "C:/opencv-3.1.0-dev/build/CMakeFiles/CMakeError.log".
, - , , ?
, cl.exe , .