[vtkusers] Graphical Tutorials for Obtaining VTK

John Drescher drescherjm at gmail.com
Fri Oct 1 12:27:23 EDT 2010


> I have adapted a tutorial by Brent Hughes (Windows XP, Visual Studio 2005)
> to start off the section:
> http://www.vtk.org/Wiki/VTK/Obtaining/GraphicalTutorials/WinXPVS2005

I would argue that INSTALL is the wrong last step in the example for
building under windows or at least a caution for the ramifications of
doing the install. Specifically if you do the install then what ever
configuration (release, debug ... ) you installed vtk is the only
configuration you can use with whatever application you are
developing. The reason for this is you can not safely mix release and
debug libraries in visual studio. The debug heap and runtime heaps are
different so you will end up with random corruption and deallocation
problems.

The proper way under windows is to not install but to build the
solution under all of the configurations that you will use for your
application and then when you configure your application with
cmake-gui and it does not find vtk (which it will not anyways on
windows) point the VTK_DIR to the root binary folder where you built
vtk. In this case CMake will properly link debug libraries to your
debug configuration of your application and do the same for release
and all other configurations.

John



More information about the vtkusers mailing list