QTDIR=/usr/local/Trolltech/Qt-4.5.0/bin
musn't that be: QTDIR=/usr/local/Trolltech/Qt-4.5.0, The base directory, not the bin dir.