[vtkusers] Windows 64 bits compilation with Visual Studio .net 2003

David Partyka dave.partyka at kitware.com
Fri Oct 3 11:21:22 EDT 2008


You could probably generate an nmake build and then use the platform SDK to
compile 64bit from the command line. You wouldn't be able to use VS2003 to
debug your 64 bit build though. If you want to use the IDE to debug I think
the simplest thing would be to upgrade to either VS 2005 or VS 2008 which
has built in 64bit support.

 

From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On Behalf
Of Laurent Peters
Sent: Friday, October 03, 2008 11:12 AM
To: vtkusers at vtk.org
Subject: [vtkusers] Windows 64 bits compilation with Visual Studio .net 2003

 

I usually compile my code for 64 bits Windows using Microsoft Visual Studio
.net 2003 and Microsoft Platform SDK for Windows Server 2003.
I tried to compile VTK 5.2 for 64 bits Windows with the same tools.

Compilation fails because CMake automatically adds the flag /MACHINE:I386 to
the linker options,
which conflicts with the /MACHINE:amd64 flag that I specified in CMake.

Is there a way to avoid that CMake adds this /MACHINE:I386 flag? I did not
find one.
Do I need to upgrade to the latest version of Microsoft Visual Studio, for
which 64 bits compilation of VTK seems straightforward?
Are there some instructions available to compile with these tools?

Thanks,
Laurent



 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20081003/b63fb7e7/attachment.htm>


More information about the vtkusers mailing list