转自:http://sxw0624.blog.163.com/blog/static/2001680382012930565661/
1。下载源码qt-everywhere-opensource-src-4.8.0.tar.gz
2。复制到/tmp3。tar -zxvf qt-everywhere-opensource-src-4.8.0.tar.gz
4. cd /tmp/ qt-everywhere-opensource-src-4.8.0
5. ./configure
错误
make: g++:命令未找到
make: *** [project.o] 错误 127
安装g++
apt-get install g++
错误
Basic XLib functionality test failed!
You might need to modify the include and library search paths by editing
QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in /tmp/qt-everywhere-opensource-src-4.8.0/mkspecs/linux-g++.
那是因为没装有libxtst-dev,使用命令apt-get install libxtst-dev安装6. make
7. make install
8. 安装qt-creater(我安装了2.4.1版本)