# Elastix fails to build

**URL:** <https://discourse.slicer.org/t/elastix-fails-to-build/11077>\
**Category:** Support\
**Tags:** elastix\
**Created:** [April 11, 2020, 12:16pm UTC](https://discourse.slicer.org/t/elastix-fails-to-build/11077 "2020-04-11T12:16:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_Vergara](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/alex_vergara/32/15205_2.png) [@Alex\_Vergara](https://discourse.slicer.org/u/Alex_Vergara)\
**Post date:** [April 11, 2020, 12:16pm UTC](https://discourse.slicer.org/t/elastix-fails-to-build/11077/1 "2020-04-11T12:16:37Z")

</div>

As seen here [http://slicer.cdash.org/buildSummary.php?buildid=1880612](http://slicer.cdash.org/buildSummary.php?buildid=1880612)

Elastix is failing to build.

I can follow the current errors up to 13/03/2020 build. I see nobody has reported this

---

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [April 11, 2020, 2:22pm UTC](https://discourse.slicer.org/t/elastix-fails-to-build/11077/2 "2020-04-11T14:22:24Z")

</div>

This would be because Slicer updated ITK from 5.1rc01 to 5.1rc03. It looks like [SlicerElastix](https://github.com/lassoan/SlicerElastix) had to be updated when going to 5.1rc01 and use a fork of Elastix because as of Jan 30th it hadn’t been updated to be compatible with that latest ITK. However it appears there has been many commits to [Elastix](https://github.com/SuperElastix/elastix) since then so I would guess it might be compatible with latest ITK now.

Can you try updating SlicerElastix to use the upstream Elastix at the latest commit and then building the extension to see if those changes work before issuing a PR to SlicerElastix?

---

<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:** [April 13, 2020, 1:33am UTC](https://discourse.slicer.org/t/elastix-fails-to-build/11077/3 "2020-04-13T01:33:21Z")

</div>

Thanks for reporting. I’ve pushed a fix, please reopen [https://github.com/lassoan/SlicerElastix/issues/27](https://github.com/lassoan/SlicerElastix/issues/27) if you find that there are errors on the dashboard tomorrow.

---

<div class="post-metadata">

**Author:** ![Alex\_Vergara](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/alex_vergara/32/15205_2.png) [@Alex\_Vergara](https://discourse.slicer.org/u/Alex_Vergara)\
**Post date:** [April 13, 2020, 1:57pm UTC](https://discourse.slicer.org/t/elastix-fails-to-build/11077/4 "2020-04-13T13:57:11Z")

</div>

Still a lot of errors on build [http://slicer.cdash.org/buildSummary.php?buildid=1882415](http://slicer.cdash.org/buildSummary.php?buildid=1882415)

---

<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:** [April 13, 2020, 3:43pm UTC](https://discourse.slicer.org/t/elastix-fails-to-build/11077/5 "2020-04-13T15:43:18Z")

</div>

Thanks for letting me know. Build is fine in Windows and Linux; only the Mac build is problematic. I’ve attempted a fix, hopefully it’ll work. Please check again tomorrow.
