For building ITK please refer to the ITK documentation
http://www.itk.org/Wiki/ITK_Getting_Started
QT uses the same path for source and binaries. For detailed build instructions please refer to
http://doc.trolltech.com/4.5/installation.html
(If you are using a version other than QT 4.5 please change the link accordingly.)
For building VTK please refer to the VTK documentation
http://www.vtk.org/Wiki/VTK_Building_VTK
Please note, that you have to link VTK against your QT by checking: