<div dir="ltr">Hi ITK community,<div><br></div><div>I am trying to cross-compile an ITK code to windows from my linux machine, but without success.</div><div><br></div><div>I am able to compile it if I use as the target system Linux (my machine) and the compilers x86_64-linux-gnu-gcc and x86_64-linux-gnu-g++ in the Toolchain cmake file. </div><div><br></div><div>Yet, if i change the target system to Windows and the compilers to x86_64-w64-mingw32-gcc and x86_64-w64-mingw32-g++ the cmake runs without any problems but is unable to find any of the ITK libraries (I observed this by looking at the generated build.make file)</div><div><br></div><div><br></div><div>Here goes the command line I am using for the cmake compilation:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">cmake . -DCMAKE_TOOLCHAIN_FILE=./Toolchain-mingw32.cmake -DCMAKE_INSTALL_PREFIX=/home/X/mingw-install -G "Unix Makefiles"</blockquote><div><br></div><div>Here goes one of the lines of the build.make file when the linux target is used</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">ThresholdImage: /disk2/X/programs/InsightToolkit-4.8.2/ITK_4.8.2/lib/libITKIOTransformHDF5-4.8.so.1</blockquote><div><br></div><div>Here goes the same line in the build.make file if the Windows is used as target</div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">ThresholdImage.exe: ITKIOTransformHDF5-NOTFOUND</blockquote><div><br></div><div>Any help is appreciated. </div><div><br></div><div><br></div><div><div class="gmail_signature"><div dir="ltr">Regards,<br>Andre Santos Ribeiro<br></div></div></div>
</div></div>