On Fri, Apr 22, 2011 at 5:28 PM, Gib Bogle <span dir="ltr">&lt;<a href="mailto:g.bogle@auckland.ac.nz">g.bogle@auckland.ac.nz</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Hi David,<br>
<br>
That change (just one occurrence) fixed that compile, but later I get:<br>
<br>
[ 67%] Building CXX object Rendering/CMakeFiles/vtkRendering.dir/vtkWin32OpenGLR<br>
enderWindow.cxx.obj<br>
C:\VTK-src\Rendering\vtkWin32OpenGLRenderWindow.cxx: In member function &#39;void vt<br>
kWin32OpenGLRenderWindow::InitializeApplication()&#39;:<br>
C:\VTK-src\Rendering\vtkWin32OpenGLRenderWindow.cxx:719:78: error: &#39;GWL_HINSTANC<br>
E&#39; was not declared in this scope<br>
C:\VTK-src\Rendering\vtkWin32OpenGLRenderWindow.cxx: In member function &#39;virtual<br>
 void vtkWin32OpenGLRenderWindow::CreateAWindow()&#39;:<br>
C:\VTK-src\Rendering\vtkWin32OpenGLRenderWindow.cxx:846:64: error: cast from &#39;vt<br>
kWin32OpenGLRenderWindow*&#39; to &#39;LONG&#39; loses precision<br>
mingw32-make[2]: *** [Rendering/CMakeFiles/vtkRendering.dir/vtkWin32OpenGLRender<br>
Window.cxx.obj] Error 1<div class="im"><br>
mingw32-make[1]: *** [Rendering/CMakeFiles/vtkRendering.dir/all] Error 2<br>
mingw32-make: *** [all] Error 2<br>
<br></div>
What are the common ways to build 64-bit VTK?<font color="#888888"><br></font></blockquote><div><br>The most common way is Microsoft Visual C++. <br><br>However, these errors you are getting with MinGW-w64 look like they are fairly minor.<br>

The new errors can be fixed by editing Common/vtkWin32Header.cxx and replacing<br>#if ( _MSC_VER &gt;= 1300 )   with  #if 1<br><br>You&#39;ll probably run into more errors after that, but I&#39;d bet they are equally straightforward<br>

to fix.  I&#39;m guessing that you shouldn&#39;t have much trouble getting everything to compile.<br><br> - David<br><br><br><br></div></div>