Ok fine.. anyways, with _WIN64 flag mpistub.lib is not being generated in VTK .. so I have no option then to use win32 flag.. But what about my first question? can i use 32bit version of cmake on 64-bit windows to configure 64bit mode of VTK ???<br>
<br>Thanks<br><br><div class="gmail_quote">On Fri, Dec 9, 2011 at 9:25 AM, John Drescher <span dir="ltr"><<a href="mailto:drescherjm@gmail.com">drescherjm@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Thu, Dec 8, 2011 at 10:51 PM, rakesh patil <<a href="mailto:prakeshofficial@gmail.com">prakeshofficial@gmail.com</a>> wrote:<br>
> Hello,<br>
><br>
> I want to compile VTK 5.8 for 64bit windows machine. I have cmake 2.6 for<br>
> 32-bit windows. I downloaded vtk source code from <a href="http://www.vtk.org" target="_blank">www.vtk.org</a> website. While<br>
> configuring, I select Visual Studio 9(64) and continued configuration. Then<br>
> I made following changes<br>
><br>
> CMAKE_CXX_FLAGS = /D_WIN64 /D_WINDOWS (Default was /DWIN32 /D_WINDOWS)<br>
> CMAKE_C_FLAGS = /D_WIN64 /D_WINDOWS (Default was /DWIN32 /D_WINDOWS)<br>
> CMAKE_INSTALL_PREFIX = Appropriate path where lib, header and dll files will<br>
> be saved<br>
> VTK_DATA_ROOT = Path where vtk data resides.<br>
><br>
> Now what i want to ask is that<br>
> 1) Is it perfectly fine to use 32-bit version of cmake to compile 64bit<br>
> version of VTK?<br>
<br>
</div>Yes. I have done that dozens of times.<br>
<div class="im"><br>
> 2) What effect will it be if WIN32 is replaced with _WIN64 in flags above?<br>
><br>
<br>
</div>I can't answer that. I have never ever set _WIN64 for any of my 64 bit<br>
builds and I have been programming in 64 bit Visual Studio with cmake<br>
for over 2 years.<br>
<font color="#888888"><br>
John<br>
</font></blockquote></div><br>