# SlicerHeart compiling

**URL:** <https://discourse.slicer.org/t/slicerheart-compiling/23191>\
**Category:** Development\
**Tags:** build\
**Created:** [April 29, 2022, 7:09am UTC](https://discourse.slicer.org/t/slicerheart-compiling/23191 "2022-04-29T07:09:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![whu](https://avatars.discourse-cdn.com/v4/letter/w/7ab992/32.png) [@whu](https://discourse.slicer.org/u/whu)\
**Post date:** [April 29, 2022, 7:09am UTC](https://discourse.slicer.org/t/slicerheart-compiling/23191/1 "2022-04-29T07:09:15Z")

</div>

who can share the experience of building SlicerHeart from source ?  
1)strange error  
CMake Error at xx/SlicerHeart-build/ITKStrain-prefix/tmp/ITKStrain-gitupdate.cmake:97 (execute\_process):  
2\> execute\_process failed command indexes:  
2\>  
2\> 1: “Child return code: 128”  
2)CMake variable EXTENSION\_WC\_REVISION is empty  
I have added the EXTENSION\_WC\_REVISION STRING 30379 in cmake gui.

thanks

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [April 29, 2022, 10:34am UTC](https://discourse.slicer.org/t/slicerheart-compiling/23191/2 "2022-04-29T10:34:49Z")

</div>

You don’t need to add any variables.

Can you please describe your configure and build process step by step, with as much detail as possible? Thanks.

---

<div class="post-metadata">

**Author:** ![adamrankin](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/adamrankin/32/155_2.png) [@adamrankin](https://discourse.slicer.org/u/adamrankin)\
**Post date:** [April 29, 2022, 1:19pm UTC](https://discourse.slicer.org/t/slicerheart-compiling/23191/3 "2022-04-29T13:19:13Z")

</div>

This can happen when the folder is not checked out from source (ie is not a git repository).

A workaround is to set that variable to something (1 is fine) and also set the SlicerHeart\_WC\_REVISION to 1 as well. This will bypass the version control checks.

Edit: if it’s a sub project, you’ll have to add the \<projectname\>\_WC\_REVISION variable to the project failing to configure.

---

<div class="post-metadata">

**Author:** ![whu](https://avatars.discourse-cdn.com/v4/letter/w/7ab992/32.png) [@whu](https://discourse.slicer.org/u/whu)\
**Post date:** [April 29, 2022, 2:40pm UTC](https://discourse.slicer.org/t/slicerheart-compiling/23191/4 "2022-04-29T14:40:02Z")

</div>

god, after using the default setting of the cmake without changing any item, all passed…  
sometimes I just want to add some option, as ITK\_FILTER  
… thanks for all friends

---

<div class="post-metadata">

**Author:** ![whu](https://avatars.discourse-cdn.com/v4/letter/w/7ab992/32.png) [@whu](https://discourse.slicer.org/u/whu)\
**Post date:** [April 30, 2022, 2:23am UTC](https://discourse.slicer.org/t/slicerheart-compiling/23191/5 "2022-04-30T02:23:14Z")

</div>

The successfully compiled SlicerHeart has been installled mannully , by adding the directory Edit-\>Setting-\>Module. Some function need the SlicerIGT module installed first, this module is added the same as SlicerHeart. But when calling the SlicerHeart, Slicer GUI shows a error message-box, SlicerHeart haven’t installed… how to solve this kind of question? thansk

---

<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:** [May 3, 2022, 11:09pm UTC](https://discourse.slicer.org/t/slicerheart-compiling/23191/6 "2022-05-03T23:09:17Z")

</div>

You need to add the SlicerIGT build folders to the additional module paths, too:  
`...\SlicerIGT_R\lib\Slicer-4.13\qt-loadable-modules\Release`  
`...\SlicerIGT_R\lib\Slicer-4.13\qt-scripted-modules`

---

<div class="post-metadata">

**Author:** ![whu](https://avatars.discourse-cdn.com/v4/letter/w/7ab992/32.png) [@whu](https://discourse.slicer.org/u/whu)\
**Post date:** [May 4, 2022, 1:02pm UTC](https://discourse.slicer.org/t/slicerheart-compiling/23191/7 "2022-05-04T13:02:03Z")

</div>

After exactly added the …/Release directory（firstly just to the …-modules directory）, all problem solved. Perfect!  
Thanks!
