How to build VTK for Linux if you are a new user

These instructions will will lead you step by step through the process of setting up VTK in your home folder. They were developed on a recent version of Kubuntu (21.10) so you may need to modify parts of it for your own particular implementation.

The directory structure in your home folder will be:

Kitware
|-- Kitware
  |-- build
  |-- src
  |-- test

There will be a VTK folder in each of build, src, test. The advantage of this structure is a clear functional separation which also allows adding future sources and builds such as for ParaView and the vtk-examples in their own sub-folders.

It is hoped that this will be a good foundation for you to build on when you develop your own applications.

Here are the instructions:
BuildingVTKforLinux.md (5.5 KB)

1 Like

Hi @amaclean

Great guide !

I think this work should be included into the build.md of VTK that you can find here:
https://gitlab.kitware.com/vtk/vtk/-/blob/master/Documentation/dev/build.md

One thing Iā€™ve done in ParaView is to have a ā€œGetting Started Guideā€ at the begining, similar to your guide, and the complete guide below:

https://gitlab.kitware.com/paraview/paraview/-/blob/master/Documentation/dev/build.md

I think a similar approach could be added into the VTK build guide. Would you like to try and integrate that in VTK ?

Best,

@mwestphal thanks. I actually refer to the VTK build.md so Iā€™ll look at the ParaView one and see how to integrate it.

Please see https://gitlab.kitware.com/vtk/vtk/-/merge_requests/9070