ECE 640 How to install Vtk on your PC.

How to Install vtk4.x on Your PC

1.  Install VisualC++ 6.0

2.  Install CMake (http://www.cmake.org/HTML/Download.html) (cmake-2.2.1-win32.exe)

3.  Download vtk (http://www.vtk.org/get-software.php) (VTK-4.2-LatestRelease.zip)

4.  Install vtk as follows.

a.  Unzip “VTK-4.2-LatestRelease.zip” to drive “c:\”

b.  Rename the folder to vtk


c. Run CMake

d. Select the src folder to be “c:\vtk”

e. Select the bin folder to be “c:\vtk”

f. Make sure to change the setting as shown in this dialog.

(Examples on, Shared libs on, Hybrid on, Rendering on, Patented on)


g. Click Configure twice

h. Click ok

i. Double click on VTK.dsw, it should open VisualV++ 6.0. If you have VisualC++.net as well, open VisualC++ 6.0 first, then select open project
to open VTK.dsw.


j. Select ALL_BUILD from the side tab, and then press Build (Warning: not Build ALL)


k. Go to “c:\vtk\bin\debug” and then select all “.dll” files

l. Copy the selected files and then paste them into “c:\windows\system”. Note that your windows folder may be named differently (e.g., winxp, etc) or on another drive (e.g., d:\,…)

How to compile using CMake

1. Create a folder with any name; say cone.

2. Create a folder called src inside cone.

3. Create a folder called bin inside cone.

4. Put CMakelists.txt and main.cpp inside src.

5. Run CMake and specify the src and bin folders.

6. Configure, and press ok.

7. Open visual studio.

8. Compile and run.

1