Adding OpenCV_Contrib to VS

asked 2017-03-19 10:15:34 -0600

obszoenling gravatar image

I have some trouble installing the further opencv modules. I'm working with MVS2015 and openCV 3.2 on Windows. I installed openCV by adding opencv to the System PATH and giving each Visual Studio Projects the additional include directories. (C:\opencv\build\include, C:\opencv\build\x64\vc14\lib, opencv_world310d.lib;%(AdditionalDependencies)) It works fine so far. Now I need the modules from opencv_contrib. I downloaded them but I am not sure how to handle their installation. I found out that CMake is usually used for it. But I am not familiar with it. By trying it following Error appears:

CMake Error at CMakeLists.txt:93 (project): No CMAKE_CXX_COMPILER could be found.

The fact that I use opencv in normal c++-projects makes this error seems strange. I am grateful for every advise solving that problem.

edit retag flag offensive close merge delete

Comments

in cmake select Visual studio 14 2015 win64 generator. Don't forget to remove CMackeCache.txt

LBerger gravatar imageLBerger ( 2017-03-19 11:50:25 -0600 )edit

It says: CMake Error: The source directory "C:/opencv" does not appear to contain CMakeLists.txt.

obszoenling gravatar imageobszoenling ( 2017-03-22 09:44:18 -0600 )edit

delete CMakeCahce.txt in CMake gui

LBerger gravatar imageLBerger ( 2017-03-22 15:01:36 -0600 )edit