# SlicerVMTK extension not building with Slicer 4.11 on MacOS

**URL:** https://discourse.slicer.org/t/slicervmtk-extension-not-building-with-slicer-4-11-on-macos/4643
**Category:** Development
**Tags:** build, extensions-manager, vmtk
**Created:** [November 5, 2018, 6:46pm UTC](https://discourse.slicer.org/t/slicervmtk-extension-not-building-with-slicer-4-11-on-macos/4643 "2018-11-05T18:46:07Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![mschumaker](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mschumaker/32/1395_2.png) [@mschumaker](https://discourse.slicer.org/u/mschumaker)
#### Post date: [November 5, 2018, 6:46pm UTC](https://discourse.slicer.org/t/slicervmtk-extension-not-building-with-slicer-4-11-on-macos/4643/1 "2018-11-05T18:46:07Z")

</div>

On CDash, the SlicerVMTK extension stopped building after Slicer and VTK changes on Oct 1. All platforms are affected: [http://slicer.cdash.org/index.php?project=SlicerPreview&date=2018-11-05&filtercount=1&showfilters=1&field1=buildname&compare1=63&value1=VMTK](http://slicer.cdash.org/index.php?project=SlicerPreview&date=2018-11-05&filtercount=1&showfilters=1&field1=buildname&compare1=63&value1=VMTK)

On Oct 1 and earlier, there were packaging problems with macOS: [http://slicer.cdash.org/index.php?project=SlicerPreview&date=2018-10-01&filtercount=1&showfilters=1&field1=buildname&compare1=63&value1=VMTK](http://slicer.cdash.org/index.php?project=SlicerPreview&date=2018-10-01&filtercount=1&showfilters=1&field1=buildname&compare1=63&value1=VMTK)

This error looks similar to errors reported earlier: [VMTK vessel filtering not working](https://discourse.slicer.org/t/vmtk-vessel-filtering-not-working/1263/5?u=mschumaker)

I have a PR in SlicerExtension-VMTK, but it doesn’t address either of these issues. I don’t understand the build well enough yet to fix these. Help?

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [November 6, 2018, 4:09am UTC](https://discourse.slicer.org/t/slicervmtk-extension-not-building-with-slicer-4-11-on-macos/4643/2 "2018-11-06T04:09:37Z")

</div>

I’ve fixed the build errors on Windows (probably it fixes the same issue on other platforms, too). I’ve submitted a pull request to upstream VMTK ([https://github.com/vmtk/vmtk/pull/317](https://github.com/vmtk/vmtk/pull/317)), and until the changes are integrated, I’ve updated Slicer VMTK extension to use my fork of VMTK instead (that contains the fix).

---

<div class="post-metadata">

### Author: ![mschumaker](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mschumaker/32/1395_2.png) [@mschumaker](https://discourse.slicer.org/u/mschumaker)
#### Post date: [November 6, 2018, 7:02pm UTC](https://discourse.slicer.org/t/slicervmtk-extension-not-building-with-slicer-4-11-on-macos/4643/3 "2018-11-06T19:02:57Z")

</div>

Thank you very much for that, Andras. I’ll change my Sept4-application-superbuild-fix branch to use your VMTK fix, and try it.  
Looking at CDash, your VMTK fix has resolved the recent errors. The problem with accessing the VMTK shared object libraries on MacOS is still there, unfortunately.  
Thanks again!

---

<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: [November 7, 2018, 6:19am UTC](https://discourse.slicer.org/t/slicervmtk-extension-not-building-with-slicer-4-11-on-macos/4643/4 "2018-11-07T06:19:45Z")

</div>

In the mean time, I merged [https://github.com/vmtk/SlicerExtension-VMTK/pull/15](https://github.com/vmtk/SlicerExtension-VMTK/pull/15), we can revisit after upstream vmtk is updated.

---

<div class="post-metadata">

### Author: ![mschumaker](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mschumaker/32/1395_2.png) [@mschumaker](https://discourse.slicer.org/u/mschumaker)
#### Post date: [November 8, 2018, 7:39pm UTC](https://discourse.slicer.org/t/slicervmtk-extension-not-building-with-slicer-4-11-on-macos/4643/5 "2018-11-08T19:39:53Z")

</div>

That’s excellent, thanks @jcfr.

Do you know what may be causing the build errors on Mac?  
[http://slicer.cdash.org/index.php?project=SlicerPreview&filtercount=1&showfilters=1&field1=buildname&compare1=63&value1=VMTK](http://slicer.cdash.org/index.php?project=SlicerPreview&filtercount=1&showfilters=1&field1=buildname&compare1=63&value1=VMTK)

---

<div class="post-metadata">

### Author: ![mschumaker](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mschumaker/32/1395_2.png) [@mschumaker](https://discourse.slicer.org/u/mschumaker)
#### Post date: [November 16, 2018, 9:24pm UTC](https://discourse.slicer.org/t/slicervmtk-extension-not-building-with-slicer-4-11-on-macos/4643/6 "2018-11-16T21:24:36Z")

</div>

I added an issue to SlicerExtension-VMTK.

> <https://github.com/vmtk/SlicerExtension-VMTK/issues/16>
>
> This issue may be similar to the previous issue https://github.com/vmtk/SlicerEx…tension-VMTK/issues/11 with building and packaging the Slicer extension for MacOS. The extension currently fails to build/package on MacOS. 
> Before the move from Slicer 4.8 to 4.10, Oct 17, SlicerVMTK could build with MacOS, but not the others: http://slicer.cdash.org/index.php?project=Slicer4&date=2018-10-17&filtercount=1&showfilters=1&field1=buildname&compare1=63&value1=vmtk
> Problems building for all OS for Slicer 4.10 from Oct 18 to Nov 5, then only build errors for MacOS: http://slicer.cdash.org/index.php?project=Slicer4&date=2018-11-06&filtercount=1&showfilters=1&field1=buildname&compare1=63&value1=vmtk
