VTK/Obtaining

From KitwarePublic
< VTK
Revision as of 18:35, 26 August 2010 by Daviddoria (talk | contribs)
Jump to navigationJump to search

First, you must install Git and CMake and optionally Boost (for many of the Infovis functionalities). In linux:

sudo yum install boost*

In windows, Download Boost

Linux & Mac

  • Clone the VTK repository:
git clone http://vtk.org/VTK.git VTK
  • Create a build directory, say ~/VTK/build. Go into that directory and configure VTK with:
 ccmake ../VTK
  • Press c (to configure, depending on your options you may have to do this twice)
  • Press g (to generate & quit)
  • Build VTK:
 make

Windows

  • Open 'Git bash' (should be a shortcut on your desktop or start menu after installing git.
  • Clone the VTK repository:
git clone http://vtk.org/VTK.git VTK
  • Open the CMake GUI and set the paths to "Where is your source code?" and "Where to build the binaries?"
  • Click Configure
  • Select your IDE under "Specify the generator for this project" and click Finish.
  • Open the project in your IDE.
  • Build the project.