compile itk (VTKGlue ON) with vtk from paraview
It seems the problems I experience when trying to compile ITK with VTK from PV originate from ParaView: https://discourse.itk.org/t/compile-itk-vtkglue-on-with-vtk-from-paraview/1289
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. The DF for PV-5.2.0 works well (https://gitlab.com/romangrothausmann/FacetAnalyser/blob/pv-5.2.0/Dockerfile) 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:
/opt/paraview/lib/cmake/paraview-5.3/ParaViewQt.cmake
/paraview/CMake/ParaViewQt.cmake
Dženan suggested that cmake "looked for ${varName}/ParaViewQt.cmake, and varName variable not being set". Otherwise, 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:
/ParaViewQt.cmake
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)