# cross compile problem (ITK\_bld\_internal\_H5make\_libsettings)

**URL:** https://discourse.itk.org/t/cross-compile-problem-itk-bld-internal-h5make-libsettings/2162
**Category:** Beginner Questions
**Tags:** cross, cmake
**Created:** [August 18, 2019, 6:33am UTC](https://discourse.itk.org/t/cross-compile-problem-itk-bld-internal-h5make-libsettings/2162 "2019-08-18T06:33:56Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![eninyo](https://discourse.itk.org/letter_avatar_proxy/v4/letter/e/f9ae1b/32.png) [@eninyo](https://discourse.itk.org/u/eninyo)
#### Post date: [August 18, 2019, 6:33am UTC](https://discourse.itk.org/t/cross-compile-problem-itk-bld-internal-h5make-libsettings/2162/1 "2019-08-18T06:33:56Z")

</div>

hello,  
i’m using ITK version 4.13.2.

i manage to compile it for Windows (using VS2017), but when i try to compile to cross compilation i get problems:  
First, I had a problem with this:

CMAKE\_CURRENT\_BINARY\_DIR

It says I have too long folder. So I set it to short in the cmake file (because it something that I don’t know where it comes from)

Then I had problems with

itk please set the following cache variables appropriately: qnanhibit\_value (advanced) qnanhibit\_value\_\_tryrun\_output (advanced)

so I found in the internet setting for that (“1” for the first and “-DTEEM\_QNANHIBIT=1” for the second)

then I got problems with this:

H5\_NO\_ALIGNMENT\_RESTRICTIONS\_RUN

H5\_NO\_ALIGNMENT\_RESTRICTIONS\_RUN\_\_TRYRUN\_OUTPUT

So I set it to “0” and “” (I found somewhere).

And now I have this problem:

ITK\_bld\_internal\_H5make\_libsettings is not recognized as an internal or external command, operable program or batch file.

anyone have any suggestion?

Thanks in advance,

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [August 19, 2019, 2:54pm UTC](https://discourse.itk.org/t/cross-compile-problem-itk-bld-internal-h5make-libsettings/2162/2 "2019-08-19T14:54:25Z")

</div>

Which platform are you trying to cross-compile to? If a platform is not normally supported, cross-compiling to it will not work either. Take a look at current version’s [dashboard](https://open.cdash.org/index.php?project=Insight) to see which platforms are tested and work.

---

<div class="post-metadata">

### Author: ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)
#### Post date: [August 19, 2019, 3:30pm UTC](https://discourse.itk.org/t/cross-compile-problem-itk-bld-internal-h5make-libsettings/2162/3 "2019-08-19T15:30:32Z")

</div>

> [@eninyo](#):
>
> i’m using ITK version 4.13.2.

ITK 5.0.1 or later is recommended.

HDF5 has cross-compiling challenges. However, we have patched HDF5 so its H5make\_libsettings can build easily with [`CMAKE_CROSSCOMPILING_EMULATOR`](https://cmake.org/cmake/help/v3.15/variable/CMAKE_CROSSCOMPILING_EMULATOR.html?highlight=cmake_crosscompiling_emulator), if set.

[dockcross](https://github.com/dockcross/dockcross), provides a QEMU User executable for this task. Otherwise, you may need to build and run the executable manually on the target system.

> [@eninyo](#):
>
> k please set the following cache variables appropriately: qnanhibit\_value (advanced) qnanhibit\_value\_\_tryrun\_output (advanced)
> 
> so I found in the internet setting for that (“1” for the first and “-DTEEM\_QNANHIBIT=1” for the second)

The use of _CMAKE\_CROSSCOMPILING\_EMULATOR_ also prevents the need to manually populate _tryrun_ outputs.

---

<div class="post-metadata">

### Author: ![eninyo](https://discourse.itk.org/letter_avatar_proxy/v4/letter/e/f9ae1b/32.png) [@eninyo](https://discourse.itk.org/u/eninyo)
#### Post date: [August 19, 2019, 7:29pm UTC](https://discourse.itk.org/t/cross-compile-problem-itk-bld-internal-h5make-libsettings/2162/4 "2019-08-19T19:29:27Z")

</div>

Hi.

I’m trying to build for my nvidia jetson tx2 which have armv8 (aarch64) processor.

Eliah Ninyo

---

<div class="post-metadata">

### Author: ![eninyo](https://discourse.itk.org/letter_avatar_proxy/v4/letter/e/f9ae1b/32.png) [@eninyo](https://discourse.itk.org/u/eninyo)
#### Post date: [August 19, 2019, 7:31pm UTC](https://discourse.itk.org/t/cross-compile-problem-itk-bld-internal-h5make-libsettings/2162/5 "2019-08-19T19:31:05Z")

</div>

But i dont need emulator i really need to cross compile

Eliah

---

<div class="post-metadata">

### Author: ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)
#### Post date: [August 19, 2019, 9:12pm UTC](https://discourse.itk.org/t/cross-compile-problem-itk-bld-internal-h5make-libsettings/2162/6 "2019-08-19T21:12:30Z")

</div>

Have you tried the _dockcross/linux-arm64_ toolchain?
