projects links |
Main / Installation
Installation instructionsInstalling binary packagesBinary packages are available thanks to the hard work of Johannes Ring, from Simula Research Laboratory and Kalkulo, Oslo, Norway, in the vmtk packaging project funded from Orobix. Ubuntu packagesStarting with vmtk 0.9, vmtk has become an official Debian package. This means that the package will be automatically available for Debian and Ubuntu releases in the future. The Ubuntu packages are now available in the PPA on Launchpad for the following Ubuntu versions:
both 32 and 64 bit. The instructions for installing vmtk on Ubuntu 10.10 (Maverick), Ubuntu 10.04 (Lucid) and Ubuntu 9.10 (Karmic) are as follows: sudo add-apt-repository ppa:vmtk-packaging/ppa sudo apt-get update sudo apt-get install vmtk Ubuntu 9.04 (Jaunty) doesn't have the add-apt-repository command so the instructions are somewhat different. First one must add the repository (type the command below in one single line): echo "deb http://ppa.launchpad.net/vmtk-packaging/ppa/ubuntu jaunty main" | sudo tee /etc/apt/sources.list.d/vmtk-packaging-jaunty.list Then add the OpenPGP key to authenticate the packages sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key CB219EE2 Then update and install as above: sudo apt-get update sudo apt-get install vmtk Mac OSX packagesThere are two different packages for Leopard and Snow Leopard:
Once downloaded, just drag the MacOSX package to the Applications folder (or any other location). Double-clicking the package will fire up vmtk within PypePad. If you want to have vmtk available at the Terminal, just cut and paste the following line source /Applications/vmtk.app/Contents/MacOS/vmtk into the .profile file in your home directory and restart a new Terminal (or start a new tab). At this point, not only vmtk becomes available at the command line, but you also get vmtk and VTK, Python-wrapped, for free! Just fire up a terminal, enter the python shell and type from vmtk import vmtkscripts from vmtk import vtkvmtk import vtk and you have access to all vmtkscripts and Python-wrapped vmtk and VTK classes. In addition, the package also contains pre-compiled VTK and ITK libraries and header files to develop their applications in C++. Windows installersAfter you download the proper architecture (32bit vs 64bit - if in doubt go for 32bit), just run the installer. It will take you through the installation stage, after which you'll find vmtk in your start menu. Click on vmtk, and you'll see PypePad ready for use. Note that, along with vmtk, the installer directly provides a Python interpreter, Python-wrapped vmtk and VTK classes, and vmtk, VTK, ITK dll's and header files to develop new applications in Python and C++. Compiling from source - Updated Sept 29, 2011Note: The vmtk development version is now based on SuperBuild, a CMake feature that allows to automatically download and compile dependencies (in our case VTK and ITK). This makes the whole process a lot easier than it was up until version 0.9. Make sure you update your notes based on the instructions below. Requirementsvmtk is cross-platform and will compile and work on Linux, Mac OSX and Windows. Just so you know, all the development and testing is performed under Linux and Mac OSX. In order to successfully compile and use vmtk, the following software has to be installed in your system: Installation
Notes for compiling in WindowsHugo Gratama van Andel and Joppe Schneiders, with the contribution of Rocco Gasteiger, have created a great How to compile VMTK on windows with MS Visual Studio guide. Click on the link to download it in pdf format. Older note for those who upgrade to 0.7 from versions prior to 0.6Starting with 0.6, the vmtk Python module has been created. This means that the global namespace doesn't get polluted, which is much cleaner and makes more sense. However,
Older notes for compiling in WindowsThanks to Pieter Kitslaar, these are fixes for building vmtk 0.6 under Windows and Python 2.5. With the advent of vmtk 0.7, the fixes should have been all incorporated, but please post on the mailing list if you encounter any problems.
Thanks Pieter! I incorporated the fixes in the SVN version, they will be included in the next release. Extra notes for Windows usersThere seems to be a problem in compiling the official VTK release (5.0.4) with Python wrapping ON and TCL wrapping OFF. For VTK this can be fixed by setting the VTK_USE_TK boolean to OFF in the advanced values. However when one tries to run Cmake on VMTK it starts getting into trouble again because in the VTK cmake files TCL and Python wrapping are closely connected. The CVS version of VTK doesn't have this problem so we advise to use the CVS version of VTK if one only wants Python wrapping and not TCL. Thanks to Pieter for the advice, and to Joshua Kwan, who first spotted the problem. Anyone who wants to volunteer for creating a binary release for Windows is encouraged to contact me! |