New extensions can not work on Slicer 5.4.0 on MacOS

macOS

The issue seems to be specific to the macOS build of MarkupsToModel, a new package failed to be re-generated due to the following error:

[  9%] Building CXX object MarkupsToModel/MRML/CMakeFiles/vtkSlicerMarkupsToModelModuleMRML.dir/vtkMRMLMarkupsToModelNode.cxx.o
In file included from /Users/svc-dashboard/D/S/S-0-E-b/MarkupsToModel/MarkupsToModel/MRML/vtkMRMLMarkupsToModelNode.cxx:6:
In file included from /D/S/S-0/Modules/Loadable/Markups/MRML/vtkMRMLMarkupsDisplayNode.h:30:
In file included from /D/S/S-0/Modules/Loadable/Markups/MRML/vtkMRMLMarkupsNode.h:23:
/Users/svc-dashboard/D/S/A/vtkAddon/vtkCurveGenerator.h:24:10: fatal error: 'vtkParametricFunction.h' file not found
#include <vtkParametricFunction.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~

After checking that the file vtkParametricFunction.h exists on the filesystem:

% pwd
/D/S/A/VTK

% find . | grep vtkParametricFunction\.h
./Common/ComputationalGeometry/vtkParametricFunction.h

we looked at the parameters being passed to the compiler, and it looks like not all VTK include directories are being passed.

Next steps: Since the Preview build seems to happen without issues, we will compare the Stable and Preview one once today’s round of preview (aka nightly) builds is completed.

Windows

On Windows, the expected VTK paths are being associated with the corresponding target: