How to compile VTK source code
Instructions
Download VTK source code from http://www.vtk.org/VTK/resources/software.html#latest.
Download CMake binary distributions: http://www.cmake.org/cmake/resources/software.html, then unpack the files.
Start CMake, browse to VTK source code directory and specify a build path.
Warnings:
For windows users: Configure and generate solutions for Microsoft Visual Studio 2008, do not configure as MinGW or Msys makefiles, which cause link errors.
For Linux users:
In order to configure VTK properly, you may need to install Mesa libraries. Here is an example what you can do on Ubuntu platform:
sudo apt-get install libosmesa6-dev
sudo apt-get install libgl1-mesa-dev
|
Do check the following options in CMake: BUILD_SHARED_LIBS and VTK_WRAP_JAVA. After that, Configure and Generate makefiles or solutions, then use corresponding compiler to build shared libraries.
|