Slicer custom app build error

sm-philips
Thu, 23 Feb 2023 21:43:16 +0000
Development

Hello,

I am trying to build a custom app following the instructions here: https://www.kitware.com/slicercat-creating-custom-applications-based-on-3d-slicer/

When building, I get the following error:

Could not find a package configuration file provided by "ITK" (requested
version 4.3) with any of the following names:

    ITKConfig.cmake
    itk-config.cmake

Could not find a package configuration file provided by "VTK" with any of
 the following names:

    VTKConfig.cmake
    vtk-config.cmake

I was under the impression that superbuild would take care of VTK and ITK dependencies.

In one of the forum posts I found that adding:

set(Slicer_VTK_VERSION_MAJOR 9 CACHE STRING "VTK major version (8 or 9)" FORCE)
mark_as_superbuild(Slicer_VTK_VERSION_MAJOR)

to the CMakeLists.txt solved the issue for the person. It didnt however solve anything for me. Still get the same error.

Any help would be appreciated. Thank you!

10 posts - 3 participants