<div dir="ltr">Hi Leila, <div><br></div><div class="gmail_extra">Unless you want to compile ITK with Python 2.7 wrapping, you might want to consider using the latest Visual studio Express for Windows Desktop (<a href="http://www.microsoft.com/visualstudio/eng/products/visual-studio-express-for-windows-desktop" target="_blank">http://www.microsoft.com/visualstudio/eng/products/visual-studio-express-for-windows-desktop</a>) which comes with a 64bit compiler out of the box.</div>


<div class="gmail_extra"><br></div><div class="gmail_extra">It can compile easily ITK (except for itkAnchorCloseImageFilter.h <a href="http://review.source.kitware.com/#/c/9233/" target="_blank">http://review.source.kitware.com/#/c/9233/</a>).</div>


<div class="gmail_extra"><br></div><div class="gmail_extra">Best, </div><div class="gmail_extra"><br></div><div class="gmail_extra">Jan</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jan 8, 2013 at 5:25 PM, Matt McCormick <span dir="ltr">&lt;<a href="mailto:matt.mccormick@kitware.com" target="_blank">matt.mccormick@kitware.com</a>&gt;</span> wrote:<br>


<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">Hi Leila,<br>
<br>
It is a hairy process.  Here are my notes:<br>
<br>
This page describes how to install 64-bit amd64 binary generation for<br>
Microsoft Visual Studio 2008 Express.  By default, it only supports<br>
32-bit x86 binaries.<br>
<br>
== Step 1: Install Visual Studio ==<br>
<br>
Install [<a href="http://www.microsoft.com/en-us/download/details.aspx?id=14597" target="_blank">http://www.microsoft.com/en-us/download/details.aspx?id=14597</a><br>
Visual Studio 2008 Express SP1].<br>
<br>
== Step 2: Install the Windows SDK ==<br>
<br>
Install [<a href="http://msdn.microsoft.com/en-us/windowsserver/ff851942" target="_blank">http://msdn.microsoft.com/en-us/windowsserver/ff851942</a> the<br>
Windows SDK].  Install the &#39;&#39;&#39;Windows SDK for Windows Server 2008 and<br>
.NET Framework 3.5&#39;&#39;&#39;, i.e. SDK &#39;&#39;&#39;v6.0A&#39;&#39;&#39;.  This is the version with<br>
the 2008 amd64 compilers.<br>
<br>
== Step 3: Hack the registry ==<br>
<br>
  The following was extracted from<br>
[<a href="https://github.com/enGits/engrid/wiki/Configure-Microsoft-Visual-Studio-2008-Express-to-also-build-for-Windows-x64" target="_blank">https://github.com/enGits/engrid/wiki/Configure-Microsoft-Visual-Studio-2008-Express-to-also-build-for-Windows-x64</a><br>



this Github wiki page] on 2012-12-04.<br>
<br>
=== Introduction ===<br>
Microsoft Visual Studio 2008 Express comes by default with only<br>
compilation and building capabilities for creating 32bit applications<br>
for Windows. It&#39;s this way (probably) because:<br>
# The Express editions are &#39;&#39;basic&#39;&#39; versions of the<br>
Professional/Standard editions of Visual Studio, but still pack the<br>
&#39;&#39;awesome power of debugging&#39;&#39; in Windows, as well as most of their<br>
optimization algorithms.<br>
# Since they are &#39;&#39;basic&#39;&#39; editions, they provide IDEs for each<br>
language in separate environments.<br>
# These &#39;&#39;basic&#39;&#39; editions are oriented to home users and small<br>
businesses who cannot afford to invest in a +500 USD application per<br>
workstation just to create a &#39;&#39;cheap&#39;&#39; application for Windows.<br>
# ...And this might also be a way for potential users to stay away<br>
from GNU Gcc and MinGW... as well as away from Linux and Mac OS X...<br>
but this might just be &#39;&#39;the paranoia talking&#39;&#39;.<br>
<br>
(Side note: seems that MSVC 2010 doesn&#39;t have these problems...)<br>
<br>
Nonetheless, Microsoft does provide the tools for building 64bit<br>
applications, for both the x86_64 (AMD64) and Itanium (IA64)<br>
architectures! But the respective compilers only come included with<br>
the Windows SDK. And that SDK is tailored to work out-of-the-box with<br>
the Standard/Professional editions.<br>
<br>
Therefore, only the inquisitive minds will try and figure out how this<br>
can work for Express. For those, unofficial informations have been<br>
compiled here: [<a href="http://jenshuebel.wordpress.com/2009/02/12/visual-c-2008-express-edition-and-64-bit-targets/" target="_blank">http://jenshuebel.wordpress.com/2009/02/12/visual-c-2008-express-edition-and-64-bit-targets/</a><br>



&quot;Visual C++ 2008 Express Edition And 64-Bit Targets&quot; on &quot;Jen&#39;s Blog&quot;].<br>
It was based on that blog post that this wiki article has been written<br>
in a more &#39;&#39;wiki-way&#39;&#39;.<br>
<br>
=== Installation Instructions ===<br>
# Install the Windows SDK. It&#39;s available<br>
[<a href="http://www.microsoft.com/download/en/details.aspx?id=18950" target="_blank">http://www.microsoft.com/download/en/details.aspx?id=18950</a> here] -<br>
Download ISO for your windows machine: x86 (GRMSDK_EN_DVD.iso) or<br>
AMD64 (GRMSDKX_EN_DVD.iso). On older SDKs, both ISOs were necessary.<br>
# Open the Registry editor (&lt;code&gt;regedit.exe&lt;/code&gt;).<br>
# Hack the necessary registry places:<br>
## On Windows 32bit:<br>
### Visit the key &lt;code&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Visual<br>
Studio\9.0\CLSID&lt;/code&gt; and export it to<br>
&lt;code&gt;sdk_data_clsid.reg&lt;/code&gt;.<br>
### Visit the key &lt;code&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Visual<br>
Studio\9.0\VC&lt;/code&gt; and export it to &lt;code&gt;sdk_data_vc.reg&lt;/code&gt;.<br>
### Visit the key<br>
&lt;code&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VCExpress&lt;/code&gt; and also<br>
export the file to &lt;code&gt;backup_msvc2008exp.reg&lt;/code&gt;, this time to<br>
keep a backup.<br>
### Edit the files &lt;code&gt;sdk_data_clsid.reg&lt;/code&gt; and<br>
&lt;code&gt;sdk_data_vc.reg&lt;/code&gt;, to replace all occurrences of<br>
&lt;code&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Visual Studio&lt;/code&gt; to<br>
&lt;code&gt;HKEY_CURRENT_USER\Software\Microsoft\VCExpress&lt;/code&gt;. Save the<br>
files.<br>
## On Windows 64bit:<br>
### Visit the key<br>
&lt;code&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Visual<br>
Studio\9.0\CLSID&lt;/code&gt; and export it to<br>
&lt;code&gt;sdk_data_clsid.reg&lt;/code&gt;.<br>
### Visit the key<br>
&lt;code&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Visual<br>
Studio\9.0\VC&lt;/code&gt; and export it to &lt;code&gt;sdk_data_vc.reg&lt;/code&gt;.<br>
### Visit the key<br>
&lt;code&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VCExpress&lt;/code&gt;<br>
and also export the file &lt;code&gt;backup_msvc2008exp.reg&lt;/code&gt;, this<br>
time to keep a backup.<br>
### Edit the files &lt;code&gt;sdk_data_clsid.reg&lt;/code&gt; and<br>
&lt;code&gt;sdk_data_vc.reg&lt;/code&gt;, to replace all occurrences of<br>
&lt;code&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Visual<br>
Studio&lt;/code&gt; to<br>
&lt;code&gt;HKEY_CURRENT_USER\SOFTWARE\Wow6432Node\Microsoft\VCExpress&lt;/code&gt;.<br>
Save the files.<br>
# Import the files &lt;code&gt;sdk_data_clsid.reg&lt;/code&gt; and<br>
&lt;code&gt;sdk_data_vc.reg&lt;/code&gt;, either from &lt;tt&gt;Regedit&lt;/tt&gt; or by<br>
double-clicking on the modified files.<br>
# Fix the broken &lt;tt&gt;config&lt;/tt&gt; files:<br>
## On Windows 32bit:<br>
### Go to the folder &lt;code&gt;C:\Program Files\Microsoft Visual Studio<br>
9.0\VC\vcpackages&lt;/code&gt; and rename the file<br>
&lt;code&gt;AMD64.VCPlatform.config&lt;/code&gt; to<br>
&lt;code&gt;AMD64.VCPlatform.Express.config&lt;/code&gt;.<br>
## On Windows 64bit:<br>
### Go to the folder &lt;code&gt;C:\Program Files (x86)\Microsoft Visual<br>
Studio 9.0\VC\vcpackages&lt;/code&gt; and rename the file<br>
&lt;code&gt;AMD64.VCPlatform.config&lt;/code&gt; to<br>
&lt;code&gt;AMD64.VCPlatform.Express.config&lt;/code&gt;.<br>
### The following steps don&#39;t seem to be always necessary. Check the<br>
next section first, to see if it works. If not, come back to this<br>
point.&lt;br&gt;Recover broken DLL files:<br>
#### Visit the DVD/Installer from where you installed Windows SDK and<br>
open the file &lt;code&gt;Setup\vc_stdx86.cab&lt;/code&gt;.<br>
#### Copy the file &lt;code&gt;FL_VCProjectAMD64Platform_dll_*&lt;/code&gt; from<br>
inside &lt;code&gt;Setup\vc_stdx86.cab&lt;/code&gt; to a temporary folder.<br>
#### Rename the copy to &lt;code&gt;VCProjectAMD64Platform.dll&lt;/code&gt;.<br>
#### Now copy this file to the folder &lt;code&gt;C:\Program Files<br>
(x86)\Microsoft Visual Studio 9.0\VC\vcpackages&lt;/code&gt;.<br>
<br>
&lt;br&gt;<br>
Modifications are now complete. You may now start MSVC2008 Express<br>
once again and open/start a new project.<br>
<br>
HTH,<br>
Matt<br>
<div><div><br>
On Tue, Jan 8, 2013 at 8:26 AM, John Drescher &lt;<a href="mailto:drescherjm@gmail.com" target="_blank">drescherjm@gmail.com</a>&gt; wrote:<br>
&gt; On Tue, Jan 8, 2013 at 10:24 AM, Leila Baghdadi<br>
&gt; &lt;<a href="mailto:baghdadi@phenogenomics.ca" target="_blank">baghdadi@phenogenomics.ca</a>&gt; wrote:<br>
&gt;&gt; thank you!<br>
&gt;&gt;<br>
&gt;<br>
&gt; You are welcome.<br>
&gt; I guess all you need from the previous link is:<br>
&gt;<br>
&gt; &quot;64-bit tools are not available on Visual C++ Express by default. To<br>
&gt; enable 64-bit tools on Visual C++ Express, install the Windows<br>
&gt; Software Development Kit (SDK) in addition to Visual C++ Express.<br>
&gt; Otherwise, an error occurs when you attempt to configure a project to<br>
&gt; target a 64-bit platform using Visual C++ Express.&quot;<br>
&gt;<br>
&gt; John<br>
&gt; _____________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Kitware offers ITK Training Courses, for more information visit:<br>
&gt; <a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the ITK FAQ at:<br>
&gt; <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</div></div></blockquote></div><br><br>
</div></div>