1. 下载 QT 4.8.7: http://download.qt.io/official_releases/qt/4.8/4.8.7/qt-everywhere-opensource-src-4.8.7.tar.gz
2. 解压,拖到虚拟机中
3. ./configure
4 . gmake
5. gmake install
6. 在 /etc/profile(全局起作用)或者 $HOME/.profile(相应用户起作用)文件中添加如下脚本
QTDIR=/usr/local/trolltech/qt-4.8.7
export QTDIR
PATH=$QTDIR/bin:$PATH
export PATH
http://blog.csdn.net/ilearncpp/article/details/8235612
http://stackoverflow.com/questions/20879715/how-to-build-qt-5-2-on-solaris-10