# My roten recipe to build ITK 5.4rc04 with ITKElastix and other modules with Python in Linux

**URL:** <https://discourse.itk.org/t/my-roten-recipe-to-build-itk-5-4rc04-with-itkelastix-and-other-modules-with-python-in-linux/6663>\
**Category:** Engineering\
**Tags:** build, itk-releases, python\
**Created:** [May 25, 2024, 2:20pm UTC](https://discourse.itk.org/t/my-roten-recipe-to-build-itk-5-4rc04-with-itkelastix-and-other-modules-with-python-in-linux/6663 "2024-05-25T14:20:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![edgar](https://discourse.itk.org/letter_avatar_proxy/v4/letter/e/b487fb/32.png) [@edgar](https://discourse.itk.org/u/edgar)\
**Post date:** [May 25, 2024, 2:20pm UTC](https://discourse.itk.org/t/my-roten-recipe-to-build-itk-5-4rc04-with-itkelastix-and-other-modules-with-python-in-linux/6663/1 "2024-05-25T14:20:58Z")

</div>

Hi. I just want to share how I was able to build ITK with some modules, including ITKElastix with Python 3.12. The attachment has the instructions, versions of source code, versions of running software and compilation logs.

# Caveats

- Unfortunately, ITKElastix downloads CastXML, SWIG, KWStyle and others even if they exist in the system. I did not try jailing the internet to see if it would fail (it does take some time to build).
- Also, I did not manage to build the binary of elastix
- The built packages conflict with each other, because they have shared files. Different systems have ways to work around this. There is a hint for `pacman`-based distros: `sudo pacman -U --overwrite '*' *5.4.rc04*tar.zst`

Any comments welcome  
[itk+itk-elastix\_build\_info.7z](https://discourse.itk.org/uploads/short-url/zLeh40xQ5MKTMRB1DLP05x4bzY.7z) (108.3 KB)

Thanks for ITK, elastix & ITKElastix!!!
