Install VTK
If you don't have VTK download it here
Unzip VTK-4.2-LastestRelease.zip in $LibDir,
this will create a new directory $LibDir/VTK
otherwise rename it to VTK
Run CMake and select the $LibDir/VTK
directory as 'Where is the source code'
Put the same path + "-VC++" (like Visual C++) as 'Where to build
the binaries'
Be sure that 'Visual Studio 6' is selected.
Check 'Show Advanced Values'.

Click on Configure,
CMake will ask you to create the VTK-VC++ folder

Put setup parameters exactly like that:
- BUILD_TESTING
= OFF
- VTK_USE_ANSI_STDLIB = ON
- VTK_USE_HYBRID
= ON
- VTK_USE_PATENDED
= ON


Click twice again on 'Configure' and then click on 'OK'. This will generate
a Visual C++ project (*.dsw) in $LibDir/VTK-VC++.
Launch $LibDir/VTK-VC++/VTK.dsw and compile in RelWithDebInfo mode.
To do that, right click on the menu and check 'Build',
you can also uncheck 'Build MiniBar'.

Then select 'RelWithDebInfo'.
Start Compilation with ALL_BUILD
![]()