Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

2015 and 2017 should be binary compatible (can not post link :-( ), so I think you can use the compiled Windows version available from the OpenCV web page. But you may 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.