VTK/Building/Linux: Difference between revisions

From KitwarePublic
< VTK‎ | Building
Jump to navigationJump to search
Line 15: Line 15:


== Build ==
== Build ==
Once cmake finishes successfully configuring, use make inside the build directory.
  make -j<# of cores>
  make -j<# of cores>

Revision as of 19:18, 28 April 2014

Download

Download the source code from the VTK Download page or Clone with Git

git clone git://vtk.org/VTK.git VTK

Configure

mkdir VTK-build
cd VTK-build
ccmake ../VTK

Set any options you would like using the curses interface. Alternatively, set the options at the command line.

mkdir VTK-Release-build
cd VTK-Release-build
cmake -DCMAKE_BUILD_TYPE:STRING=Release /path/to/VTK

Build

Once cmake finishes successfully configuring, use make inside the build directory.

make -j<# of cores>