Ask Your Question

Revision history [back]

OpenCV Viz Module Unavailable (Cmake) - Windows 10

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

OpenCV Viz Module Unavailable (Cmake) - Windows 10

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,is 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...

OpenCV Viz Module Unavailable (Cmake) - Windows 10

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,is says: 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...

OpenCV Viz Module Unavailable (Cmake) - Windows 10

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.