compile itk (VTKGlue ON) with vtk from paraview

Follwoing this old mailing list thread I have tried to create dockerfiles (DF) for the creation of docker images that compile ITK with vtk from paraview for VTKGlue that I need for a PV plugin (ShapeMI demo). The DF for PV-5.2.0 works well ( but when I change to PV-5.3.0 or PV-5.4.0 cmake for ITK complains of not finding ParaViewQt.cmake. However I can find it at:


What would be the right set of CMAKE_MODULE_PATH and VTK_DIR to satisfy cmake for newer PV?

This is part of the message from cmake GL CI:

CMake Error at /PV_build/lib/cmake/paraview-5.3/Modules/pqApplicationComponents.cmake:10 (include):
  include could not find load file:

Call Stack (most recent call first):
  /paraview/VTK/CMake/vtkModuleAPI.cmake:45 (include)
  /paraview/VTK/CMake/vtkModuleAPI.cmake:15 (vtk_module_load)
  /paraview/VTK/CMake/vtkModuleAPI.cmake:132 (_vtk_module_config_recurse)
  /PV_build/VTK/VTKConfig.cmake:122 (vtk_module_config)
  Modules/Bridge/VtkGlue/itk-module-init.cmake:9 (find_package)
  CMake/ITKModuleEnablement.cmake:318 (include)
  CMakeLists.txt:337 (include)
1 Like

That looks like a problem in ParaView. Failing to find /ParaViewQt.cmake makes me think it looked for ${varName}/ParaViewQt.cmake, and varName variable not being set. It is probably best to report this as a bug to ParaView.

Many thanks @dzenanz for looking into this and your suggestion.
I posted the issue here: