Ask Your Question

PetterS's profile - activity

2017-03-08 06:22:11 -0600 received badge  Editor (source)
2017-03-08 06:17:54 -0600 answered a question how to use open cv in visual studio 2017

2015 and 2017 should be binary compatible (can not post link :-( ), so you can use the compiled Windows version available from the OpenCV web page. But you have to edit the .cmake file to allow 2017.

Change these lines in OpenCVConfig.cmake

elseif(MSVC_VERSION EQUAL 1910)
  set(OpenCV_RUNTIME vc15)
endif()

to

elseif(MSVC_VERSION EQUAL 1910)
  message("-- Using OpenCV vc14 for VisualStudio 2017.")
  set(OpenCV_RUNTIME vc14)
endif()

I just tried this and it works.