VTK/Obtaining: Difference between revisions

From KitwarePublic
< VTK
Jump to navigationJump to search
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
First, you must install [[Git/Download|Git]] and [http://www.cmake.org/cmake/resources/software.html CMake]
==Graphical Tutorials==
* [[VTK/Obtaining/GraphicalTutorials/WinXPVS2005 | Windows XP, Visual Studio 2005]]
 
==Prerequisites==
You must first install the following:
 
* [[Git/Download|Git]]  
* [http://www.cmake.org/cmake/resources/software.html CMake]  
* Boost (optional, for many of the Infovis functionalities)
** In linux:
sudo yum install boost*
** In windows, [http://www.boostpro.com/download/boost_1_44_setup.exe Download Boost]
(You must set the CMake Boost_INCLUDE_DIR to C:/Program Files/boost/boost_1_44/ (where C:/Program Files/boost/boost_1_44/boost constains files like wave.h, etc).


==Linux & Mac==
==Linux & Mac==
Line 16: Line 28:


==Windows==
==Windows==
* git clone http://vtk.org/VTK.git VTK
* Open 'Git bash' (should be a shortcut on your desktop or start menu after installing git.
* Open the CMake GUI and point it to your VTK source directory.
 
* Select your IDE.
* Clone the VTK repository:
* Generate a project for your IDE.
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.
* Open the project in your IDE.
* Build the project.
* Build the project.

Latest revision as of 14:00, 1 October 2010

Graphical Tutorials

Prerequisites

You must first install the following:

  • Git
  • CMake
  • Boost (optional, for many of the Infovis functionalities)
    • In linux:
sudo yum install boost*

(You must set the CMake Boost_INCLUDE_DIR to C:/Program Files/boost/boost_1_44/ (where C:/Program Files/boost/boost_1_44/boost constains files like wave.h, etc).

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.