1 安装QT Creator
sudo apt-get install qtcreator
2 下载QT4.8.5
http://download.qt.io/archive/qt/4.8/4.8.5/qt-everywhere-opensource-src-4.8.5.zip
./configure: 183: ./configure: /^(QMAKE_CXX)=/ { print substr($0, index($0, "=") + 1) }: not found
ERROR: Cannot set the compiler for the configuration tests配置出错。
需要下载http://download.qt.io/archive/qt/4.8/4.8.5/qt-everywhere-opensource-src-4.8.5.tar.gz
3 解压
tar -zxvf ../share/qt-everywhere-opensource-src-4.8.5.tar.gz
4 配置
5 编译&安装./configure -prefix /usr/local/qt/qt_4.8.5/x86
make -j8
make install
6 添加到qt creator中