<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1619" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial>Hello Yulia,</FONT></DIV>
<DIV><FONT face=Arial>I am stuck in the same step and I can not overcome it.
Could you give me more information about how you solved it,
please?</FONT></DIV>
<DIV><FONT face=Arial>Thanks</FONT></DIV>
<DIV><FONT face=Arial>Pablo</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT
face=Arial>-----------------------------------------------------------------------------------------</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial> Hi,<BR><BR>I have solved it myself by reading what's
on cross-compiling on Cmake wiki and introducing some changes to CMakeLists.txt
in Utilities/kwsys directory.<BR><BR>Cheers,<BR>Yulia<BR><BR>-----Original
Message-----<BR>From: <A
href="http://www.itk.org/mailman/listinfo/insight-users">insight-users-bounces
at itk.org</A> [mailto:<A
href="http://www.itk.org/mailman/listinfo/insight-users">insight-users-bounces
at itk.org</A>] On Behalf Of <A
href="http://www.itk.org/mailman/listinfo/insight-users">Yulia.Arzhaeva at
csiro.au</A><BR>Sent: Monday, 10 August 2009 6:15 PM<BR>To: <A
href="http://www.itk.org/mailman/listinfo/insight-users">insight-users at
itk.org</A><BR>Subject: [ExternalEmail] [Insight-users] Errors while
cross-compiling with mingw in Linux<BR><BR>Hi,<BR><BR>I've been trying to
cross-compile ITK for Windows using Mingw. The host platform is Linux
Suse.<BR>Generating build files using cmake and a toolchain file went okay, with
the exception of TRY_RUN errors, which is understandable.<BR>However, when I
started compilation of ITK, I ran into a problem that seems unresolvable to
me.<BR>ITK compilation seems to include compiling and then running several
executables, such as itksysEncodeExecutable, itksysProcessFwd9x.exe.<BR>Since I
am cross-compiling for another platform, these executable cannot be run on the
host platform. These is the compilation error I've got:<BR><BR>Scanning
dependencies of target itksysEncodeExecutable<BR>[ 0%] Building C object
Utilities/kwsys/CMakeFiles/itksysEncodeExecutable.dir/EncodeExecutable.obj<BR>Linking
C executable ../../bin/itksysEncodeExecutable.exe<BR>[ 0%] Built target
itksysEncodeExecutable<BR>Scanning dependencies of target
itksysProcessFwd9x<BR>[ 0%] Building C object
Utilities/kwsys/CMakeFiles/itksysProcessFwd9x.dir/ProcessFwd9x.obj<BR>Linking C
executable ../../bin/itksysProcessFwd9x.exe<BR>[ 0%] Built target
itksysProcessFwd9x<BR>[ 1%] Generating itksysProcessFwd9xEnc.c<BR>/bin/sh:
../../bin/itksysEncodeExecutable.exe: cannot execute binary file<BR>make[2]: ***
[Utilities/kwsys/itksysProcessFwd9xEnc.c] Error 126<BR>make[1]: ***
[Utilities/kwsys/CMakeFiles/itksys.dir/all] Error 2<BR>make: *** [all] Error
2<BR><BR>Maybe, there is a solution to it? Maybe, I need to exclude those files
from the compilation process, compile them separately beforehand with
gcc?<BR>Any adice will be appreciated. <BR><BR>Yulia Arzhaeva<BR>CSIRO
Mathematical and Information
Sciences<BR>_____________________________________<BR></DIV></FONT></BODY></HTML>