# SlicerExtension-VMTK build failing on MacOS 10.12, VTKv9, Qt 5.10

**URL:** <https://discourse.slicer.org/t/slicerextension-vmtk-build-failing-on-macos-10-12-vtkv9-qt-5-10/2650>\
**Category:** Development\
**Tags:** extensions-manager, vmtk\
**Created:** [April 20, 2018, 6:30pm UTC](https://discourse.slicer.org/t/slicerextension-vmtk-build-failing-on-macos-10-12-vtkv9-qt-5-10/2650 "2018-04-20T18:30:43Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![Fernando](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fernando/32/5640_2.png) [@Fernando](https://discourse.slicer.org/u/Fernando)\
**Post date:** [June 27, 2018, 1:00pm UTC](https://discourse.slicer.org/t/slicerextension-vmtk-build-failing-on-macos-10-12-vtkv9-qt-5-10/2650/21 "2018-06-27T13:00:56Z")

</div>

Do you know which is the latest Slicer revision on which VMTK works / how I can figure it out?

---

<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:** [June 27, 2018, 5:24pm UTC](https://discourse.slicer.org/t/slicerextension-vmtk-build-failing-on-macos-10-12-vtkv9-qt-5-10/2650/22 "2018-06-27T17:24:22Z")

</div>

You can look at the build and testing record for Slicer and extensions at [http://slicer.cdash.org/viewProjects.php](http://slicer.cdash.org/viewProjects.php). Open the tools, click Show Filters, and search for the Build Name VMTK. The Slicer4 project uses Qt4.8, and there are successful builds of the VMTK extension there (the Qt5 build is SlicerPreview). The latest ones haven’t built properly because there is a pending pull request at vmtk/SlicerExtension-VMTK that someone needs to review and accept. The last successful build of the extension was on June 13:  
[http://slicer.cdash.org/index.php?project=Slicer4&date=2018-06-13&filtercount=1&showfilters=1&field1=buildname&compare1=63&value1=VMTK](http://slicer.cdash.org/index.php?project=Slicer4&date=2018-06-13&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:** [June 27, 2018, 6:52pm UTC](https://discourse.slicer.org/t/slicerextension-vmtk-build-failing-on-macos-10-12-vtkv9-qt-5-10/2650/23 "2018-06-27T18:52:18Z")

</div>

Here’s where I posted about VTK9 compatibility for VMTK. Feel free to add comments expressing your interest.  
[https://groups.google.com/forum/#!topic/vmtk-users/rhMaE8W8oi0](https://groups.google.com/forum/#!topic/vmtk-users/rhMaE8W8oi0)

> <https://github.com/vmtk/vmtk/issues/308>
>
> I'd like to request investigating VTK9 compatibility of VMTK, in anticipation of… their stable release. The reason I'm requesting this is to be able to compile SlicerExtension-VMTK with macOS 10.12 and 10.13, which no longer support Qt4. 3D Slicer has introduced a Qt5-compatible version, but it requires VTK9. I've found that I can compile VMTK with 8.1, but I get a build error when trying it with the same VTK version as my Slicer build:
> 
> \`\`\`
> \[37%\] Performing build step for 'VMTK'
> \[0%\] Built target nl
> \[1%\] Built target vtkvmtkITK
> make\[5\]: \*\*\* No rule to make target \`/short/testing/SlicerExtension-VMTK-Build/VMTK/vtkVmtk/Utilities/vtkvmtkITK/vtkvmtkITKHierarchy', needed by \`vtkVmtk/Utilities/vtkvmtkITK/vtkvmtkITKArchetypeImageSeriesReaderPython.cxx'. Stop.
> make\[4\]: \*\*\* \[vtkVmtk/Utilities/vtkvmtkITK/CMakeFiles/vtkvmtkITKPythonD.dir/all\] Error 2
> make\[3\]: \*\*\* \[all\] Error 2
> make\[2\]: \*\*\* \[VMTK-prefix/src/VMTK-stamp/VMTK-build\] Error 2
> make\[1\]: \*\*\* \[CMakeFiles/VMTK.dir/all\] Error 2
> make: \*\*\* \[all\] Error 2
> 
> \`\`\`
> 
> I've discussed this with @jcfr, and he's found a similar error. He's submitted a pull request that will fix other macOS issues with SlicerExtension-VMTK, but to keep up with current Slicer development, VTK9 compatibility is needed.

---

<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:** [July 5, 2018, 2:46pm UTC](https://discourse.slicer.org/t/slicerextension-vmtk-build-failing-on-macos-10-12-vtkv9-qt-5-10/2650/24 "2018-07-05T14:46:09Z")

</div>

I’ve submitted a pull request to the Slicer ExtensionsIndex, so that SlicerVMTK is fetched from vmtk/SlicerExtension-VMTK. At the moment, it’s still trying to fetch from a deleted branch of @jcfr’s repository, and failing. I don’t have Write permission - could someone review and accept it? Or may I have Write permission?

> <https://github.com/Slicer/ExtensionsIndex/pull/1561>
>
> The remote source for SlicerVMTK.s4ext was previously set to a personal reposito…ry. Fixes have been made in the GitHub.com/vmtk/SlicerExtension-VMTK.git source, and so it can be the source for the extension's code.
> This pull request changes the source code manager lines in SlicerVMTK.git to:
> scmurl https://github.com/vmtk/SlicerExtension-VMTK
> scmrevision master

---

<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:** [July 9, 2018, 3:15pm UTC](https://discourse.slicer.org/t/slicerextension-vmtk-build-failing-on-macos-10-12-vtkv9-qt-5-10/2650/25 "2018-07-09T15:15:20Z")

</div>

I’ve narrowed down what changes in VTK have led to problems compiling VMTK for SlicerPreview. The last VTK9 revision that results in a successful VMTK build was merged into master on Dec 13, 2017: c96fe3bca6bdb7df83252f8a443d8e0428cab956, “Merge branch ‘upstream-expat’ into update-expat”. The commit that follows it deals with vtkWrapHierarchy.

> <https://github.com/Kitware/VTK/commit/de1e3d3baf6c90c331f413aa1dff040793968f15>

For two days after that, I can’t get VTK itself to compile, then with revisions from Dec 15 onwards I get the error we’ve been seeing in the recent build attempts. @jcfr, @lassoan, do you have any insight into why that change would cause problems, and how to address it? Thanks for any assistance.  
I wrote more about it in the last comments here:

> <https://github.com/vmtk/vmtk/issues/308>
>
> I'd like to request investigating VTK9 compatibility of VMTK, in anticipation of… their stable release. The reason I'm requesting this is to be able to compile SlicerExtension-VMTK with macOS 10.12 and 10.13, which no longer support Qt4. 3D Slicer has introduced a Qt5-compatible version, but it requires VTK9. I've found that I can compile VMTK with 8.1, but I get a build error when trying it with the same VTK version as my Slicer build:
> 
> \`\`\`
> \[37%\] Performing build step for 'VMTK'
> \[0%\] Built target nl
> \[1%\] Built target vtkvmtkITK
> make\[5\]: \*\*\* No rule to make target \`/short/testing/SlicerExtension-VMTK-Build/VMTK/vtkVmtk/Utilities/vtkvmtkITK/vtkvmtkITKHierarchy', needed by \`vtkVmtk/Utilities/vtkvmtkITK/vtkvmtkITKArchetypeImageSeriesReaderPython.cxx'. Stop.
> make\[4\]: \*\*\* \[vtkVmtk/Utilities/vtkvmtkITK/CMakeFiles/vtkvmtkITKPythonD.dir/all\] Error 2
> make\[3\]: \*\*\* \[all\] Error 2
> make\[2\]: \*\*\* \[VMTK-prefix/src/VMTK-stamp/VMTK-build\] Error 2
> make\[1\]: \*\*\* \[CMakeFiles/VMTK.dir/all\] Error 2
> make: \*\*\* \[all\] Error 2
> 
> \`\`\`
> 
> I've discussed this with @jcfr, and he's found a similar error. He's submitted a pull request that will fix other macOS issues with SlicerExtension-VMTK, but to keep up with current Slicer development, VTK9 compatibility is needed.

---

<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:** [July 20, 2018, 2:35am UTC](https://discourse.slicer.org/t/slicerextension-vmtk-build-failing-on-macos-10-12-vtkv9-qt-5-10/2650/26 "2018-07-20T02:35:43Z")

</div>

Hi Folks,

To follow up with this, the build system of VMTK has been fixed and a PR has been submitted, it is currently waiting to be integrated:

> <https://github.com/vmtk/vmtk/pull/313>

In the process, we also discovered an issue in `conda-build` which has also been fixed in the upstream project:

> <https://github.com/conda/conda-build/pull/3027>
>
> addresses https://github.com/vmtk/vmtk/pull/313#issuecomment-406146264
> 
> CC @jc…fr

@mschumaker Thanks for your patience

---

<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:** [July 20, 2018, 3:11am UTC](https://discourse.slicer.org/t/slicerextension-vmtk-build-failing-on-macos-10-12-vtkv9-qt-5-10/2650/27 "2018-07-20T03:11:22Z")

</div>

@jcfr Thanks so much for pursuing this! I appreciate your efforts.

[Previous page](https://discourse.slicer.org/t/slicerextension-vmtk-build-failing-on-macos-10-12-vtkv9-qt-5-10/2650.md?page=1)
