0% found this document useful (0 votes)
57 views

Install Notes VTK5 VC2010 Win64

This document provides instructions for installing VTK 5.8.0 on Windows 7. It describes downloading and installing Visual C++ 2010 Express Edition and CMake 2.8.7. It then provides steps to download the VTK source code, use CMake to generate a Visual Studio project for building VTK, and build VTK using Visual Studio 2010 in debug and release modes. Finally, it confirms the successful build by verifying the VTK libraries are present in the expected folder.

Uploaded by

0rae
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views

Install Notes VTK5 VC2010 Win64

This document provides instructions for installing VTK 5.8.0 on Windows 7. It describes downloading and installing Visual C++ 2010 Express Edition and CMake 2.8.7. It then provides steps to download the VTK source code, use CMake to generate a Visual Studio project for building VTK, and build VTK using Visual Studio 2010 in debug and release modes. Finally, it confirms the successful build by verifying the VTK libraries are present in the expected folder.

Uploaded by

0rae
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

VTK 5.8.

0
Installation Notes (Windows 7)
Carlos A. Vinhais
[email protected]
May, 2012

Microsoft Visual C++ 2010 Express Edition


http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express
CMake 2.8.7
CMake is a cross-platform, open-source build system. CMake is a family of tools designed to build, test and
package software. CMake is used to control the software compilation process using simple platform and
compiler independent configuration files. CMake generates native makefiles and workspaces that can be
used in the compiler environment of user choice. See www.cmake.org for more information about CMake.
vtk-5.8.0
The Visualization Toolkit (VTK) is an open-source, cross-platform, freely available software system for 3D
computer graphics, image processing and visualization. VTK consists of a C++ class library and supports a
wide variety of visualization algorithms and advanced modeling techniques. VTK has an extensive
information visualization framework, has a suite of 3D interaction widgets, supports parallel processing, and
integrates with various databases on GUI toolkits such as FLTK. VTK 5.8 will be used for the course. See
www.vtk.org for more information about VTK.

1. Download and Install Visual C++ 2010 Express Edition

Choose the installation directory, e.g., C:\Program Files\Microsoft Visual Studio 10.0

2. Download and Install CMake 2.8.7

Download the binary distribution for Windows (Win32 Installer), cmake-2.8.7-win32-x86.exe, to a


temporary directory.
Double-click on the file cmake-2.8.7-win32-x86.exe, and install CMake 2.8.7 with the option:
Add Cmake to the system PATH for all users
Choose the installation directory, e.g., C:\Program Files\CMake 2.8\bin
Locate cmake-gui.exe. This program should be located at C:\Program Files\CMake 2.8\bin
3. Download VTK 5.8.0
Consider <DIR> = C:\Toolkits.
Get VTK source. Download the file vtk-5.8.0.zip (30 MB) to a temporary directory.
Create a new directory to build VTK, e.g. <DIR>\vtk-5.8.0

Create SOURCE and BINARY directories:


<DIR>\vtk-5.8.0\src
<DIR>\vtk-5.8.0\bin
Unzip (Extract to \) the file vtk-5.8.0.zip, and copy the contents to <DIR>\vtk-5.8.0\src

4. Generate VTK project with CMake:

Run cmake-gui.exe. This program is located at C:\Program Files\CMake 2.8\bin


Specify the SOURCE e BINARY directories:
Where is the source code: <DIR>\vtk-5.8.0\src
Where to build the binaries: <DIR>\vtk-5.8.0\bin

Note: the SOURCE directory should contain the file CMakeLists.txt.

Click on Configure

Specify the appropriate generator for the project (e.g. "Visual Studio 10 Win64")
Select "Use default native compilers"
Click on Finish

Configure the project with the following options (values):


BUILD EXAMPLES
OFF
BUILD SHARED_LIBS
OFF
BUILD TESTING
OFF
CMAKE_INSTALL_PREFIX
<DIR>\vtk-5.8.0

Click on Configure
Click on Generate

Please close CMake.


Check the BINARY directory of VTK. You should find the VC++ project VTK.sln.

5. Build VTK with Visual C++ 2010 (Win64)

Locate the VC++ project (solution) VTK.sln, in the BINARY directory <DIR>\vtk-5.8.0\bin
Open Visual C++ 2010 Express and edit this project:
File -> Open -> Project/Solution... (CTRL+Shift+O)
Select <DIR>\vtk-5.8.0\bin\VTK.sln

Build VTK in mode Debug, configuration x64: Build -> Build solution (F7)
Build VTK in other modes/configurations

6. Verify the build

Verify the build. You should find VTK libraries in <DIR>\vtk-5.8.0\bin\bin\Debug

Congratulations!

You might also like