# compile itk (VTKGlue ON) with vtk from paraview

**URL:** https://discourse.itk.org/t/compile-itk-vtkglue-on-with-vtk-from-paraview/1289
**Category:** Engineering
**Created:** [September 13, 2018, 6:57pm UTC](https://discourse.itk.org/t/compile-itk-vtkglue-on-with-vtk-from-paraview/1289 "2018-09-13T18:57:35Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![grothausmann.roman](https://discourse.itk.org/user_avatar/discourse.itk.org/grothausmann.roman/32/582_2.png) [@grothausmann.roman](https://discourse.itk.org/u/grothausmann.roman)
#### Post date: [September 13, 2018, 6:57pm UTC](https://discourse.itk.org/t/compile-itk-vtkglue-on-with-vtk-from-paraview/1289/1 "2018-09-13T18:57:36Z")

</div>

Follwoing this old [mailing list thread](https://public.kitware.com/pipermail/paraview/2015-January/033118.html) 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 ([https://gitlab.com/romangrothausmann/FacetAnalyser/blob/pv-5.2.0/Dockerfile](https://gitlab.com/romangrothausmann/FacetAnalyser/blob/pv-5.2.0/Dockerfile)) but when I change to [PV-5.3.0](https://gitlab.com/romangrothausmann/FacetAnalyser/commit/58af66b03ea89fcbedaf22e56ad3508690ac19ae) or [PV-5.4.0](https://gitlab.com/romangrothausmann/FacetAnalyser/commit/52c00d139134726b7021e05732281c97b63481f4) cmake for ITK complains of not finding ParaViewQt.cmake. However I can find it at:

```auto
/opt/paraview/lib/cmake/paraview-5.3/ParaViewQt.cmake
/paraview/CMake/ParaViewQt.cmake

```

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](https://gitlab.com/romangrothausmann/FacetAnalyser/-/jobs/97401983):

```auto
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)

```

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [September 13, 2018, 8:16pm UTC](https://discourse.itk.org/t/compile-itk-vtkglue-on-with-vtk-from-paraview/1289/2 "2018-09-13T20:16:47Z")

</div>

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](https://gitlab.kitware.com/paraview/paraview/issues) to ParaView.

---

<div class="post-metadata">

### Author: ![grothausmann.roman](https://discourse.itk.org/user_avatar/discourse.itk.org/grothausmann.roman/32/582_2.png) [@grothausmann.roman](https://discourse.itk.org/u/grothausmann.roman)
#### Post date: [September 14, 2018, 6:14am UTC](https://discourse.itk.org/t/compile-itk-vtkglue-on-with-vtk-from-paraview/1289/3 "2018-09-14T06:14:01Z")

</div>

Many thanks @dzenanz for looking into this and your suggestion.  
I posted the issue here: [https://gitlab.kitware.com/paraview/paraview/issues/18454](https://gitlab.kitware.com/paraview/paraview/issues/18454)
