VTK

From CBLFS
Jump to navigationJump to search
Download Source: http://www.vtk.org/files/release/5.0/vtk-5.0.2.tar.gz
Download Patch: http://svn.cross-lfs.org/svn/repos/patches/VTK/VTK-5.0.2-fixes-1.patch
Download Patch (Multilib Only): http://svn.cross-lfs.org/svn/repos/patches/VTK/VTK-5.0.2-multilib-1.patch

Introduction to VTK

The Visualization ToolKit (VTK) is a software system for 3D computer graphics, image processing, and visualization. VTK consists of a C++ class library, and several interpreted interface layers including Tcl/Tk, Java, and Python.

Project Homepage: http://www.vtk.org

Dependencies

Required

Recommended

Optional

Configuration Information

VTK uses cmake to create a build environment. Configuration is interactive.

Non-Multilib

Apply a patch and fix hardcoded X11 paths:

patch -Np1 -i ../VTK-5.0.2-fixes-1.patch &&
sed -i -e 's@/usr/X11R6/@${XORG_PREFIX}/@g' \
 CMakeLists.txt \
 Utilities/ftgl/CMakeLists.txt

Compile the package:

mkdir ../VTK-build &&
cd ../VTK-build &&
ccmake ../VTK

Toggle to advanced mode by pressing [t]. As you alter options in the configuration, you will be presented with new and exciting choices after pressing [c]. When you have configured VTK to your liking, press [g] to generate and save build environment.

For some reason VTK doesn't want to find libjvm.so even though it is set during the configuration. Set the LD_LIBRARY_PATH variable and install the package:

export LD_LIBRARY_PATH=</path/to/libjvm.so> && 
make install

Multilib

32Bit

Apply a patch and fix hardcoded X11 paths:

patch -Np1 -i ../VTK-5.0.2-fixes-1.patch &&
sed -i -e 's@/usr/X11R6/@${XORG_PREFIX}/@g' \
 CMakeLists.txt \
 Utilities/ftgl/CMakeLists.txt

Compile the package:

mkdir ../VTK-build &&
cd ../VTK-build &&
CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" ccmake ../VTK

Toggle to advanced mode by pressing [t]. As you alter options in the configuration, you will be presented with new and exciting choices after pressing [c]. When you have configured VTK to your liking, press [g] to generate and save build environment.

For some reason VTK doesn't want to find libjvm.so even though it is set during the configuration. Set the LD_LIBRARY_PATH variable and install the package:

export LD_LIBRARY_PATH=</path/to/libjvm.so> && 
make install

N32

The multilib patch includes the changes from the "fixes" patch. Apply the multilib patch:

patch -Np1 -i ../VTK-5.0.2-multilib-1.patch &&
sed -i -e 's:@@MULTILIB_LIB@@:lib32:g' \
 CMakeLists.txt \
 Utilities/ftgl/CMakeLists.txt \
 Utilities/kwsys/SystemTools.cxx \
 Utilities/TclTk/lib/CMakeLists.txt \
 Wrapping/Python/vtkPythonAppInit.cxx \
 Wrapping/Python/PythonInstall.cmake.in \
 Wrapping/Tcl/vtkTkAppInit.cxx

Fix the hardcoded X11 paths:

sed -i -e 's@/usr/X11R6/@${XORG_PREFIX}@g' \
 CMakeLists.txt \
 Utilities/ftgl/CMakeLists.txt

Compile the package:

mkdir ../VTK-build &&
cd ../VTK-build &&
CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" ccmake ../VTK

Toggle to advanced mode by pressing [t]. As you alter options in the configuration, you will be presented with new and exciting choices after pressing [c]. When you have configured VTK to your liking, press [g] to generate and save build environment.

For some reason VTK doesn't want to find libjvm.so even though it is set during the configuration. Set the LD_LIBRARY_PATH variable and install the package:

export LD_LIBRARY_PATH=</path/to/libjvm.so> && 
make install

64Bit

The multilib patch includes the changes from the "fixes" patch. Apply the multilib patch:

patch -Np1 -i ../VTK-5.0.2-multilib-1.patch &&
sed -i -e 's:@@MULTILIB_LIB@@:lib64:g' \
 CMakeLists.txt \
 Utilities/ftgl/CMakeLists.txt \
 Utilities/kwsys/SystemTools.cxx \
 Utilities/TclTk/lib/CMakeLists.txt \
 Wrapping/Python/vtkPythonAppInit.cxx \
 Wrapping/Python/PythonInstall.cmake.in \
 Wrapping/Tcl/vtkTkAppInit.cxx

Fix the hardcoded X11 paths:

sed -i -e 's@/usr/X11R6/@${XORG_PREFIX}@g' \
 CMakeLists.txt \
 Utilities/ftgl/CMakeLists.txt

Compile the package:

mkdir ../VTK-build &&
cd ../VTK-build &&
CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" ccmake ../VTK

Toggle to advanced mode by pressing [t]. As you alter options in the configuration, you will be presented with new and exciting choices after pressing [c]. When you have configured VTK to your liking, press [g] to generate and save build environment.

For some reason VTK doesn't want to find libjvm.so even though it is set during the configuration. Set the LD_LIBRARY_PATH variable and install the package:

export LD_LIBRARY_PATH=</path/to/libjvm.so> && 
make install

Contents

Installed Directories: /usr/lib/vtk-5.0, /usr/lib/python2.7.8/site-packages/vtk
Installed Programs: vtk, vtkParseJava, vtkWrapJava, vtkWrapPython, vtkWrapPythonInit, vtkWrapTcl, vtkWrapTclInit, vtkpython
Installed Libraries: libvtksys.so, libvtkDICOMParser.so, libvtkMPEG2Encode.so, libvtkNetCDF.so, libvtkexoIIc.so, libvtkftgl.so, libvtkCommon.so, libvtkCommonJava.so, libvtkCommonPythonD.so, libvtkCommonTCL.so, libvtkFiltering.so, libvtkFilteringJava.so, libvtkFilteringPythonD.so, libvtkFilteringTCL.so, libvtkImaging.so, libvtkImagingJava.so, libvtkImagingPythonD.so, libvtkImagingTCL.so, libvtkGraphics.so, libvtkGraphicsJava.so, libvtkGraphicsPythonD.so, libvtkGraphicsTCL.so, libvtkGenericFiltering.so, libvtkGenericFilteringJava.so, libvtkGenericFilteringPythonD.so, libvtkGenericFilteringTCL.so, libvtkIO.so, libvtkIOJava.so, libvtkIOPythonD.so, libvtkIOTCL.so, libvtkRendering.so, libvtkRenderingJava.so, libvtkRenderingPythonD.so, libvtkRenderingPythonTkWidgets.so, libvtkRenderingTCL.so, libvtkVolumeRendering.so, libvtkVolumeRenderingJava.so, libvtkVolumeRenderingPythonD.so, libvtkVolumeRenderingTCL.so, libvtkHybrid.so, libvtkHybridJava.so, libvtkHybridPythonD.so, libvtkHybridTCL.so, libvtkWidgets.so, libvtkWidgetsJava.so, libvtkWidgetsPythonD.so, libvtkWidgetsTCL.so
Symlinks: None

Short Descriptions

vtk
vtkParseJava
vtkWrapJava
vtkWrapPython
vtkWrapPythonInit
vtkWrapTcl
vtkWrapTclInit
vtkpython