[vtkusers] Error building VTK 64-bit
Gib Bogle
g.bogle at auckland.ac.nz
Fri Apr 22 22:22:23 EDT 2011
A couple more changes got the build further along, then it hit a compiler
internal error in volumeRendering\vtkProjectedTetrahedraMapper.cxx. Time to cut
my losses here, I think.
The reason for wanting to build the 64-bit version is that I have to process
some big 3D images, too big for a 32-bit program. In fact the particular VTK
filter I want use operates on 2D slices, so I do have the option of splitting
the big 3D tiff into 2d tiffs, processing them, then recombining them.
There is another potential issue, though. I want to use
vtkImageIslandRemoval2D, but I see that the example on the VTK site apparently
does not work: VTK/Examples/Broken/Cxx/Images/vtkImageIslandRemoval2D. Has this
been fixed?
Gib
On 23/04/2011 12:47 p.m., David Gobbi wrote:
> On Fri, Apr 22, 2011 at 5:28 PM, Gib Bogle <g.bogle at auckland.ac.nz
> <mailto:g.bogle at auckland.ac.nz>> wrote:
>
> Hi David,
>
> That change (just one occurrence) fixed that compile, but later I get:
>
> [ 67%] Building CXX object Rendering/CMakeFiles/vtkRendering.dir/vtkWin32OpenGLR
> enderWindow.cxx.obj
> C:\VTK-src\Rendering\vtkWin32OpenGLRenderWindow.cxx: In member function 'void vt
> kWin32OpenGLRenderWindow::InitializeApplication()':
> C:\VTK-src\Rendering\vtkWin32OpenGLRenderWindow.cxx:719:78: error: 'GWL_HINSTANC
> E' was not declared in this scope
> C:\VTK-src\Rendering\vtkWin32OpenGLRenderWindow.cxx: In member function 'virtual
> void vtkWin32OpenGLRenderWindow::CreateAWindow()':
> C:\VTK-src\Rendering\vtkWin32OpenGLRenderWindow.cxx:846:64: error: cast from 'vt
> kWin32OpenGLRenderWindow*' to 'LONG' loses precision
> mingw32-make[2]: *** [Rendering/CMakeFiles/vtkRendering.dir/vtkWin32OpenGLRender
> Window.cxx.obj] Error 1
>
> mingw32-make[1]: *** [Rendering/CMakeFiles/vtkRendering.dir/all] Error 2
> mingw32-make: *** [all] Error 2
>
> What are the common ways to build 64-bit VTK?
>
>
> The most common way is Microsoft Visual C++.
>
> However, these errors you are getting with MinGW-w64 look like they are fairly
> minor.
> The new errors can be fixed by editing Common/vtkWin32Header.cxx and replacing
> #if ( _MSC_VER >= 1300 ) with #if 1
>
> You'll probably run into more errors after that, but I'd bet they are equally
> straightforward
> to fix. I'm guessing that you shouldn't have much trouble getting everything to
> compile.
>
> - David
>
>
>
More information about the vtkusers
mailing list