OpenCV Viz Module Unavailable (Cmake) - Windows 10 [closed]

asked 2020-03-19 15:57:22 -0600

Syberspaz gravatar image

updated 2020-03-20 08:15:33 -0600

I can't seem to get the viz module to configure for some reason. Any suggestions?

My Configuration:

  • Windows 10 OpenCV - master from git
  • OpenCV_contrib - master from git
  • VTK latest version compiled and installed in C:/VTK
  • WITH_VTK = ON
  • VTK_DIR = C:/VTK/lib/cmake/vtk-9.0

Hit Configure and get: OpenCV Modules: Unavailable: ... viz

-- EDIT: -- In the CMake log, it still can't find VTK, it says:

VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file

The problem is that the file "VTKConfig.cmake" doesn't exist. I have "vtk-config.cmake" in the build dir but that doesn't seem to appease cmake. Renaming didn't help.

Is there something special that needs to be done to make VTK create this file or tell OpenCV's cmake to look for the right one...

-- EDIT: SOLVED! -- Apparently VTK 9.0 does not create a VTKConfig.cmake file. Downgrading to VTK 8.2.0 works and the OpenCV Viz module is built.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Syberspaz
close date 2020-03-20 08:15:50.435565

Comments

please edit your question, and add the cmake console output (rather long, but it will have hints why it is so)

berak gravatar imageberak ( 2020-03-20 05:06:44 -0600 )edit
1

added the relevant portion

Syberspaz gravatar imageSyberspaz ( 2020-03-20 07:22:41 -0600 )edit

my cmake output is here I installed vtk. My cmake command for vtk is -DVTK_DIR:PATH="$myRepo"/install/vtk/lib/cmake/vtk-8.1

i use git bash on windows

LBerger gravatar imageLBerger ( 2020-03-20 08:06:32 -0600 )edit