# New extensions can not work on Slicer 5.4.0 on MacOS

**URL:** <https://discourse.slicer.org/t/new-extensions-can-not-work-on-slicer-5-4-0-on-macos/31535>\
**Category:** Support\
**Created:** [September 4, 2023, 6:01am UTC](https://discourse.slicer.org/t/new-extensions-can-not-work-on-slicer-5-4-0-on-macos/31535 "2023-09-04T06:01:18Z")\
**Posts on this page:** 1\
**Showing post:** 26

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [September 26, 2023, 2:58am UTC](https://discourse.slicer.org/t/new-extensions-can-not-work-on-slicer-5-4-0-on-macos/31535/26 "2023-09-26T02:58:12Z")

</div>

### 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:

```auto
[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:

```auto
% 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:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/7/b/7beca016b8be9513681bda8ce6ee6ed10878140a.png)

---

_[View the full topic](https://discourse.slicer.org/t/new-extensions-can-not-work-on-slicer-5-4-0-on-macos/31535)._
