<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"><<a href="mailto:matt.mccormick@kitware.com" target="_blank">matt.mccormick@kitware.com</a>></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 '''Windows SDK for Windows Server 2008 and<br>
.NET Framework 3.5''', i.e. SDK '''v6.0A'''. 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's this way (probably) because:<br>
# The Express editions are ''basic'' versions of the<br>
Professional/Standard editions of Visual Studio, but still pack the<br>
''awesome power of debugging'' in Windows, as well as most of their<br>
optimization algorithms.<br>
# Since they are ''basic'' editions, they provide IDEs for each<br>
language in separate environments.<br>
# These ''basic'' 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 ''cheap'' 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 ''the paranoia talking''.<br>
<br>
(Side note: seems that MSVC 2010 doesn'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>
"Visual C++ 2008 Express Edition And 64-Bit Targets" on "Jen's Blog"].<br>
It was based on that blog post that this wiki article has been written<br>
in a more ''wiki-way''.<br>
<br>
=== Installation Instructions ===<br>
# Install the Windows SDK. It'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 (<code>regedit.exe</code>).<br>
# Hack the necessary registry places:<br>
## On Windows 32bit:<br>
### Visit the key <code>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Visual<br>
Studio\9.0\CLSID</code> and export it to<br>
<code>sdk_data_clsid.reg</code>.<br>
### Visit the key <code>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Visual<br>
Studio\9.0\VC</code> and export it to <code>sdk_data_vc.reg</code>.<br>
### Visit the key<br>
<code>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VCExpress</code> and also<br>
export the file to <code>backup_msvc2008exp.reg</code>, this time to<br>
keep a backup.<br>
### Edit the files <code>sdk_data_clsid.reg</code> and<br>
<code>sdk_data_vc.reg</code>, to replace all occurrences of<br>
<code>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Visual Studio</code> to<br>
<code>HKEY_CURRENT_USER\Software\Microsoft\VCExpress</code>. Save the<br>
files.<br>
## On Windows 64bit:<br>
### Visit the key<br>
<code>HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Visual<br>
Studio\9.0\CLSID</code> and export it to<br>
<code>sdk_data_clsid.reg</code>.<br>
### Visit the key<br>
<code>HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Visual<br>
Studio\9.0\VC</code> and export it to <code>sdk_data_vc.reg</code>.<br>
### Visit the key<br>
<code>HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VCExpress</code><br>
and also export the file <code>backup_msvc2008exp.reg</code>, this<br>
time to keep a backup.<br>
### Edit the files <code>sdk_data_clsid.reg</code> and<br>
<code>sdk_data_vc.reg</code>, to replace all occurrences of<br>
<code>HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Visual<br>
Studio</code> to<br>
<code>HKEY_CURRENT_USER\SOFTWARE\Wow6432Node\Microsoft\VCExpress</code>.<br>
Save the files.<br>
# Import the files <code>sdk_data_clsid.reg</code> and<br>
<code>sdk_data_vc.reg</code>, either from <tt>Regedit</tt> or by<br>
double-clicking on the modified files.<br>
# Fix the broken <tt>config</tt> files:<br>
## On Windows 32bit:<br>
### Go to the folder <code>C:\Program Files\Microsoft Visual Studio<br>
9.0\VC\vcpackages</code> and rename the file<br>
<code>AMD64.VCPlatform.config</code> to<br>
<code>AMD64.VCPlatform.Express.config</code>.<br>
## On Windows 64bit:<br>
### Go to the folder <code>C:\Program Files (x86)\Microsoft Visual<br>
Studio 9.0\VC\vcpackages</code> and rename the file<br>
<code>AMD64.VCPlatform.config</code> to<br>
<code>AMD64.VCPlatform.Express.config</code>.<br>
### The following steps don'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.<br>Recover broken DLL files:<br>
#### Visit the DVD/Installer from where you installed Windows SDK and<br>
open the file <code>Setup\vc_stdx86.cab</code>.<br>
#### Copy the file <code>FL_VCProjectAMD64Platform_dll_*</code> from<br>
inside <code>Setup\vc_stdx86.cab</code> to a temporary folder.<br>
#### Rename the copy to <code>VCProjectAMD64Platform.dll</code>.<br>
#### Now copy this file to the folder <code>C:\Program Files<br>
(x86)\Microsoft Visual Studio 9.0\VC\vcpackages</code>.<br>
<br>
<br><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 <<a href="mailto:drescherjm@gmail.com" target="_blank">drescherjm@gmail.com</a>> wrote:<br>
> On Tue, Jan 8, 2013 at 10:24 AM, Leila Baghdadi<br>
> <<a href="mailto:baghdadi@phenogenomics.ca" target="_blank">baghdadi@phenogenomics.ca</a>> wrote:<br>
>> thank you!<br>
>><br>
><br>
> You are welcome.<br>
> I guess all you need from the previous link is:<br>
><br>
> "64-bit tools are not available on Visual C++ Express by default. To<br>
> enable 64-bit tools on Visual C++ Express, install the Windows<br>
> Software Development Kit (SDK) in addition to Visual C++ Express.<br>
> Otherwise, an error occurs when you attempt to configure a project to<br>
> target a 64-bit platform using Visual C++ Express."<br>
><br>
> John<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>
_____________________________________<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>