fixed Ubuntu12.04 compile error

You should set system env QTDIR
example:
export QTDIR=~/Qt5.2.1/5.2.1/gcc_64