VTK installation

1. Install visual cmake-gui
sudoapt-get install cmake-curses-gui
2 install Qt5
See Section 3.1 of the following link for the installation process
3 to install X11
sudoapt-get install libx11-dev libxext-dev libxtst-dev libxrender-dev libxmu-devlibxmuu-dev
4 to install OpenGL
sudoapt-get install build-essential libgl1-mesa-dev libglu1-mesa-dev libglut-dev

sudo apt-get install freeglut3-dev
sudo apt-get install freeglut3-dev
sudo apt-get install freeglut3-dev
sudo apt-get install freeglut3-dev
5 compile VTK6.3
After download VTK6.3 and extract, extract the file name is commonly VTK – 6.3.0
download url: http://www.vtk.org/download/
open cmake – GUI interface in terminal input: cmake – GUI in cmake – GUI interface does the following:
1. Set the path of “Where is the source code:” to the path of the folder vtk-6.3.0, such as /home/vtk-6.3.0; 2. Set the path “Where to build the binaries:” to /home/vtk-6.3.0/build. Create a new folder called build under /home/vtk-6.3.0. 3. Click “Configure” and select “Current Generator” as “UNIX Makefiles” in the pop-up dialog box. When completed, it will prompt “Configuring Done”. 4. Because you are installing QT5 and VTK-6.3.0 default is Qt 4, you need to find Qt Version after the completion of Step 3, change 4 to 5, and then click “Configure” again. It will prompt “Configuring done” after completion. 5. Click “Generate”, and it will prompt “Generate done” after completion; 6, the terminal into the folder under the build path, type the following command:
sudo make
sudo make install 7, here is the
here refer to the following opencv icon after performing the above steps, VTK – 6.3.0 installation is complete.

Read More: