1、安装gcc,g++
sudo apt-get install gcc
sudo apt-get install g++
2、解压源码包
tar xvzf qt-xxxx
3、安装xlib库
sudo apt-get install libX11-dev libXext-dev libXtst-dev
4、支持opengl
sudo apt-get install libglib2.0-dev
sudo apt-get install libgstreamer0.10-dev
sudo apt-get install xlibmesa-glu-dev
sudo apt-get install xorg-dev
5、支持webkit
sudo apt-get install libgstreamer*
6、配置
./configure
7、编译
make
8、安装
make install