The process of building VTK using cmake is described via following steps:
- 1, Download the version of VTK from http://www.vtk.org/VTK/resources/software.html.
2. Extract the VTK-5.8.0.tar.gz file and keep it in the $HOME directory.
So, its location will be /home/username/VTK.
3. create a VTK_build directory(also in $HOME) and jump into the directory.4. Run cmake-guiCode: Select all
$mkdir build_VTK $cd build_VTK
5. Configure and generate the VTK Makefile using cmake.Code: Select all
$cmake-gui
- a. Locate the source and build paths of VTK as shown in the figure.
c. Click generate (Makefile will be generated with other necessary files)
b. Click configure.
Then, browse the path exactly at the place where this VTK_DIR-NOTFOUND is written and define this path where the Makefiles and other files/folders of previously built VTK are located. So, the path for VTK_DIR will be written as:Code: Select all
VTK_DIR VTK_DIR-NOTFOUND
6. Click configure for update of "Elmer build configuration" and then click generate.Code: Select all
VTK_DIR /home/username/build_VTK
7. The Makefile for Elmerbuild is generated along with WITH_VTK option for ELMER_GUI. - a. Locate the source and build paths of VTK as shown in the figure.
Yours
Anil Kunwar