Optional VTK module cannot be used in a ParaView plugin
Optional VTK module (vtkImagingStenctil, vtkRenderingQt, etc...) include directories are missing from PARAVIEW_USE_FILE
.
It is possible to add the include directories manually though.
How to reproduce :
- configure paraview master , activate
Module_vtkImagingStencil
- build paraview
- download and unpack this simple plugin , that does an
include "vtkImageStencil.h
- configure and build it
Scanning dependencies of target SMMyElevation
[ 63%] Building CXX object CMakeFiles/SMMyElevation.dir/vtkMyElevationFilter.cxx.o
/home/glow/work/sandbox/SimpleFilterPlugin/vtkMyElevationFilter.cxx:18:10: fatal error: vtkImageStencil.h: No such file or directory
#include "vtkImageStencil.h"
^~~~~~~~~~~~~~~~~~~
compilation terminated.
Edit : Even if it have may worked before, I've found a reasonnable work around, and I do not think this need more fixing. it is fixed by using
find_package(ParaView REQUIRED COMPONENTS vtkImagingStencil)
in the plugin CMakeLists.txt
Edited by Mathieu Westphal (Kitware)