Make sure you have qmake in your path (which qmake), and that it works (qmake -v)
(IF you have to kill it with ctr-c then there is something wrong with your environment).
Then follow this: http://developer.qt.nokia.com/doc/qt-4.8/gettingstartedqt.html