OpenCVDetectVTK.cmake with VTK 8.0.1 on Windows 10
Does the OpenCVDetectVTK.cmake of the latest OpenCV 3.3.1 works with VTK 8.0.1?
I want to build OpenCV with VTK by using Visual Studio 2017 on Windows 10. I use CMake-UI 3.10.0 RC4 to config, but I feel like CMake gives the wrong configuration. Could anyone please confirm the VTK_DIR? It's the build folder or source folder?
Edit: I've found some instruction from other websites, and my CMake configured correctly based on those sites. I just wondered why it linked to install/lib/cmake/vtk-8.0
not the root directory of my VTK.
in my cmake VTK_DIR :
C:/Program Files/VTK/lib/cmake/vtk-8.1
Thanks for your fast response! Could you tell me about the build location of your VTK? Inside the "vtk-8.1" or anywhere else?
honestly i can't remember all steps. i guess i downloaded the source and built it with cmake and VS 2015 using
INSTALL.vcxproj
C:/Program Files/VTK created by VS 2015Yes thank for your help! Let me try again.
VTK_DIR is the path where you can find VTKConfig.cmake
Thank for your reply! I've found some instruction from other websites, and my CMake configured correctly based on those sites. I just wondered why it linked to
install/lib/cmake/vtk-8.0
not the root directory of my VTK.Have you installed git bash?
Yes I have. Everything is working fine now. Thank you again @LBerger!