ITK/Complete Setup: Difference between revisions

From KitwarePublic
< ITK
Jump to navigationJump to search
mNo edit summary
No edit summary
Line 23: Line 23:


== Getting the sources ==
== Getting the sources ==
===ITK:===
Do this in your home directory.  It will take a long time, depending on your connection speed.
===ITK===


   cvs -d :pserver:anonymous@www.itk.org:/cvsroot/Insight login
   cvs -d :pserver:anonymous@www.itk.org:/cvsroot/Insight login
Line 30: Line 31:
   cvs -d :pserver:anonymous@www.itk.org:/cvsroot/Insight co Insight
   cvs -d :pserver:anonymous@www.itk.org:/cvsroot/Insight co Insight


You can also obtain the Insight documentation:
You can also get the Insight documentation (optional):
   cvs -d :pserver:anonymous@www.itk.org:/cvsroot/Insight co InsightDocuments
   cvs -d :pserver:anonymous@www.itk.org:/cvsroot/Insight co InsightDocuments


A variety of Insight demo applications are available in the InsightApplications module:
A variety of Insight demo applications are available in the InsightApplications module (optional):
   cvs -d :pserver:anonymous@www.itk.org:/cvsroot/Insight co InsightApplications  
   cvs -d :pserver:anonymous@www.itk.org:/cvsroot/Insight co InsightApplications  


===VTK:===
===VTK===


   cvs -d :pserver:anonymous@public.kitware.com:/cvsroot/VTK login
   cvs -d :pserver:anonymous@public.kitware.com:/cvsroot/VTK login
Line 42: Line 43:
   cvs -d :pserver:anonymous@public.kitware.com:/cvsroot/VTK checkout VTK
   cvs -d :pserver:anonymous@public.kitware.com:/cvsroot/VTK checkout VTK


For testing purposes you might wish to checkout the CVS VTKData:
For testing purposes you might wish to checkout the CVS VTKData (optional):
   cvs -d :pserver:anonymous@public.kitware.com:/cvsroot/VTKData login
   cvs -d :pserver:anonymous@public.kitware.com:/cvsroot/VTKData login
password: vtk
password: vtk
   cvs -d :pserver:anonymous@public.kitware.com:/cvsroot/VTKData checkout VTKData
   cvs -d :pserver:anonymous@public.kitware.com:/cvsroot/VTKData checkout VTKData


===KWWidgets:===
===KWWidgets===
   cvs -d :pserver:anoncvs@www.kwwidgets.org:/cvsroot/KWWidgets login
   cvs -d :pserver:anoncvs@www.kwwidgets.org:/cvsroot/KWWidgets login
password: <just hit return>
password: <just hit return>
   cvs -d :pserver:anoncvs@www.kwwidgets.org:/cvsroot/KWWidgets co KWWidgets
   cvs -d :pserver:anoncvs@www.kwwidgets.org:/cvsroot/KWWidgets co KWWidgets
Asssuming you did all this in your home directory, you have the directories Insight, InsightDocuments, InsightApplications, VTK, VTKData, KWWidgets
==Make and Compile==
===ITK===
As in the ITK Software Guide:
  mkdir $HOME/Insight-bin
  cd $HOME/Insight-bin
  ccmake ../Insight
Hit c to configure, then g if everything went well.  Then type
  make
This will take a while, depending on the speed of your machine.  It took about ~4hrs on a P4-2.8GHz with 2GB RAM.
===VTK===
  cd $HOME/VTK
  ccmake .
Hit c to configure, then g if everything went well.  You will probably have to hit c a number of times, setting variables in between.

Revision as of 22:43, 24 February 2006

This page will describe setting up the Kitware tools on an Ubuntu (or any Debian, really) workstation. I assume that you have a basic install of Debian/Ubuntu.

Preparing your system

For ITK, install the following packages:

  • gcc
  • g++
  • make
  • cmake

For VTK, install the following packages:

  • tcl8.4-dev
  • tk8.4-dev
  • libgl1-mesa-dev

For FLTK, install the following packages:

  • libfltk1.1-dev
  • libglu1-mesa-dev

For QT, install the following packages:

  • q3-apps-dev
  • qt3-dev-tools
  • libqt3-i18n

Getting the sources

Do this in your home directory. It will take a long time, depending on your connection speed.

ITK

 cvs -d :pserver:anonymous@www.itk.org:/cvsroot/Insight login

password: insight

 cvs -d :pserver:anonymous@www.itk.org:/cvsroot/Insight co Insight

You can also get the Insight documentation (optional):

 cvs -d :pserver:anonymous@www.itk.org:/cvsroot/Insight co InsightDocuments

A variety of Insight demo applications are available in the InsightApplications module (optional):

 cvs -d :pserver:anonymous@www.itk.org:/cvsroot/Insight co InsightApplications 

VTK

 cvs -d :pserver:anonymous@public.kitware.com:/cvsroot/VTK login

password: vtk

 cvs -d :pserver:anonymous@public.kitware.com:/cvsroot/VTK checkout VTK

For testing purposes you might wish to checkout the CVS VTKData (optional):

 cvs -d :pserver:anonymous@public.kitware.com:/cvsroot/VTKData login

password: vtk

 cvs -d :pserver:anonymous@public.kitware.com:/cvsroot/VTKData checkout VTKData

KWWidgets

 cvs -d :pserver:anoncvs@www.kwwidgets.org:/cvsroot/KWWidgets login

password: <just hit return>

 cvs -d :pserver:anoncvs@www.kwwidgets.org:/cvsroot/KWWidgets co KWWidgets

Asssuming you did all this in your home directory, you have the directories Insight, InsightDocuments, InsightApplications, VTK, VTKData, KWWidgets

Make and Compile

ITK

As in the ITK Software Guide:

 mkdir $HOME/Insight-bin
 cd $HOME/Insight-bin
 ccmake ../Insight

Hit c to configure, then g if everything went well. Then type

 make

This will take a while, depending on the speed of your machine. It took about ~4hrs on a P4-2.8GHz with 2GB RAM.

VTK

 cd $HOME/VTK
 ccmake .

Hit c to configure, then g if everything went well. You will probably have to hit c a number of times, setting variables in between.