Make sure you have "/opt/qt4.5/bin/qmake". Add /opt/qt4.5/bin to your path and set QTDIR to /opt/qt4.5 before running qmake.

Qt Code:
  1. export QTDIR=/opt/qt4.5
  2. export PATH=$PATH:$QTDIR/bin
To copy to clipboard, switch view to plain text mode