I compiled qt source code on ubuntu with the following cmds:(I did not use .run file to install qt)
./configure -prefix /home/li/code/qt-everywhere-opensource