not sure. check and see if your file paths are correctly entered in your /root/.profile
should look something like this:
QTDIR=/usr/local/qt #[this may be /usr/lib/qt, use search for files *qt* to check]
export QTDIR PATH MANPATH LD_LIBRARY_PATH
if you have no .profile, copy and paste the above into a newly created file named .profile in your /root home.
#reboot, relogin, and try your compile again.