[vtkusers] Problems getting started with VTK on Win x64
Thomas Lambertz
thomas at hexerei-software.de
Thu Apr 6 20:34:26 EDT 2006
Hi there,
after some tries with ITK/VTK under WinXP/VS2003 i have to change to
WinXP64/VS2005.
My current Environment is as follow:
WinXP x64 Prof.
Visual Studio 2005 Prof.
CMake 2.2.3
ITK 2.6.0
VTK 5.0.0
As i learned CMake does not generate solutions for x64 so i choosed the
following way for building itk/vtk libraries:
Starting with default settings i changed:
- BUILD_TESTING to OFF (which i should reconsider)
- Adding /D_CRT_SECURE_NO_DEPRECATE to the compilerflags to avoid the
majority of the massive number of warnings generated by VS2005
- Linkerflag /maschine:AMD64 instead of /maschine:I386 so that the 64bit
versions of kernel32.lib etc. are used
Opened the generated solution and change from debug to release ( i read
that there are a few issues when using in debug-mode ) and changed
solution platform from win32 to New->x64. Some of the paths in the
projects were not consistent (VS2005 included a subdirectory x64 in the
$(outdir) makro - and some projects use this makro - others don´t). I
changed them manually (which i know isn´t really the correct way - i
should do in the cmakelist.txt files - but i havent discovered yet how
to do so exactly).
After these steps all ITK/VTK projects were builded succesfully (in ITK
i have to disable -O2 for ITKNumerics - otherwise VS2005 fails) for both
static and shared libraries.
As a simple test i choosed medical from vtk/Examples/Medical/Cxx.
Running without problems as a win32-build in the x64-build the
"Visualization Toolkit - Win32OpenGL #1" Windows openes - but only with
a black canvas.
As i am really new to ITK/VTK i can not figure out what exactly went
wrong. Any suggestions ?
With kind regards,
Tom
PS: Some here in the mailinglist are obviously wrestling with similar
constellations. Can someone here confirm ITK/VTK running with 64bit on
Windows ? Even a negative answer would be welcomed to avoid wasting more
time to a (yet impossible ?) solution.
More information about the vtkusers
mailing list