VTK/Obtaining: Difference between revisions

From KitwarePublic
< VTK
Jump to navigationJump to search
No edit summary
Line 16: Line 16:
* git clone http://vtk.org/VTK.git VTK
* git clone http://vtk.org/VTK.git VTK
* Open the CMake GUI and point it to your VTK source directory.
* Open the CMake GUI and point it to your VTK source directory.
* Build.
* Select your IDE.
* Generate a project for your IDE.
* Open the project in your IDE.
* Build the project.

Revision as of 13:44, 26 August 2010

First, you must install git git and CMake

Linux & Mac

  • 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

  • git clone http://vtk.org/VTK.git VTK
  • Open the CMake GUI and point it to your VTK source directory.
  • Select your IDE.
  • Generate a project for your IDE.
  • Open the project in your IDE.
  • Build the project.