OpenCVDetectVTK.cmake with VTK 8.0.1 on Windows 10

asked 2017-11-07 14:08:25 -0600

rathaROG gravatar image

updated 2017-11-08 12:53:41 -0600

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.

edit retag flag offensive close merge delete

Comments

in my cmake VTK_DIR : C:/Program Files/VTK/lib/cmake/vtk-8.1

sturkmen gravatar imagesturkmen ( 2017-11-07 14:29:17 -0600 )edit

Thanks for your fast response! Could you tell me about the build location of your VTK? Inside the "vtk-8.1" or anywhere else?

rathaROG gravatar imagerathaROG ( 2017-11-07 14:36:23 -0600 )edit

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 2015

sturkmen gravatar imagesturkmen ( 2017-11-07 14:44:56 -0600 )edit

Yes thank for your help! Let me try again.

rathaROG gravatar imagerathaROG ( 2017-11-07 14:53:49 -0600 )edit

VTK_DIR is the path where you can find VTKConfig.cmake

LBerger gravatar imageLBerger ( 2017-11-08 02:08:11 -0600 )edit

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.

rathaROG gravatar imagerathaROG ( 2017-11-08 02:17:21 -0600 )edit

Have you installed git bash?

LBerger gravatar imageLBerger ( 2017-11-08 03:01:54 -0600 )edit

Yes I have. Everything is working fine now. Thank you again @LBerger!

rathaROG gravatar imagerathaROG ( 2017-11-08 03:24:36 -0600 )edit