Installation of vtk on ubuntu 10.10

I installed Ubuntu 10.10 using wubi yesterday. After some messing around with Compiz I decided this will be my new environment for coding. I’m documenting the installation procedure to date. This will be updated as I progress.

  • install QT creator
  • install cmake & cmake GUI
  • download vtk source and untar/unzip
  • create VTKBuild directory
  • cd to VTKBuild directory
  • open cmake GUI and set sources to VTK and build directory to VTKBuild (or command line type cmake ../VTK)
  • make changes either in cmake GUI or to CMakeCache.txt to include VTK_USE_GUISUPPORT, BUILD_SHARED_LIBS and VTK_USE_QVTK
  • Change install prefix to location of output files (in my case this is changed to /usr/local)
  • call cmake again or hit configure
  • set desired QT version (in my case to 4)
  • hit configure again
  • open terminal and navigate to VTKBuild directory
  • run commands ‘make’ and then sudo ‘make install’
  • this moves all headers to /usr/local/include/vtkXX/ and all lib files to /usr/local/lib/vtkXX/

Leave a Reply