[Insight-users] problem compiling ITK 3.20 for 64 bit targert on a WINXP 32 OS

Francois DE VIEILLEVILLE devieill at irit.fr
Thu Mar 31 11:13:28 EDT 2011


Hello all,

my problem seems rather common, but I cannot find the solution anywhere,
so I am trying my luck over here !

* Brief description of the problem :
 Compile ITK 3.20 for a 64 bit target (X64) with a VS 2008 Express 
edition on a WIN 32 bit os :

* necessary steps
1) install win 7 sdk and SP1
2) patch so as to get the proper registry entries (otherwise x64 target 
NEVER appears)
    see 
jenshuebel.wordpress.com/2009/02/12/visual-c-2008-express-edition-anb-64-bit-targets
3) configure cmake
4) launch VS2008, open ITK.sln file
5) configure Release X64
6) compile

* hard part
Then the first problems appear :
itkSysEncodeExecutable   :   in the "properties -linker-command line" 
and extra parameter /machine:X86 appears and seems to contradict a 
previous /machine:X64 option
itkSysProcess   : same thing
itkTestDriver : can't remember

tricky part :

if one enforces /machine:X64 then both sub-projects compile but  
itkSysEncodeExecutable can never be called since it is not a VALID WIN 
32 app. COnsequences are that itksys lib sub-project can NEVER be 
compiled as there is a call to the itkSysEncodeExecutable program.

possible solution :
compile in 32 bit the 2 exe (itksysencode and itk sysProcess) and copy 
the following executable from

/whatever/bin/Release/
to /whatever/bin/x64/Release


currently trying it, part of this  work (itkSys sub project compile) but 
the ItkCommon.dll still cannot be produces...


if anyone of you have the miracle solution,
please share it !!!

Regards,

François



-------------- next part --------------
A non-text attachment was scrubbed...
Name: devieill.vcf
Type: text/x-vcard
Size: 420 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110331/6f8873d6/attachment.vcf>


More information about the Insight-users mailing list