I want to include ITK python wrapping in my Slicer build, but building fails when I turn on Slicer_BUILD_ITKPython, with the following error in the make output
...
-- ITKPyUtils: Creating itkPyCommand submodule.
-- ITKPyUtils: Creating itkPyImageFilter submodule.
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
_vtk_lib_include_dirs
used as include directory in directory /home/ebrahim/Slicer-SuperBuild-Debug/ITK/Modules/Bridge/VtkGlue/wrapping
used as include directory in directory /home/ebrahim/Slicer-SuperBuild-Debug/ITK/Modules/Bridge/VtkGlue/wrapping
... <more of the same message>
used as include directory in directory /home/ebrahim/Slicer-SuperBuild-Debug/ITK/Modules/Bridge/VtkGlue/wrapping
-- Configuring incomplete, errors occurred!
I see the variable _vtk_lib_include_dirs getting assigned here in ITK, but I don’t really know what’s going on. Not sure if this is a Slicer issue or an ITK issue. Any ideas?
Note this previous attempt linked below of me trying to build ITK python. Some discussion was about pip install itk as an easier option for Slicer instead of changing Slicer to build ITK python wrapping as part of the nightly build process.
jcfr
(Jean Christophe Fillion Robin (Kitware))
Split this topic
7
EDIT: I should add that I was trying this with a Slicer Custom App, not with vanilla Slicer. So the issue may be related to the way in which I included the new branch. Perhaps I omitted a needed change in my top level cmake file.