您的位置:首页 > 编程语言 > Qt开发

Ubuntu安装QT4.8.5

2017-05-10 14:41 274 查看
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 配置

./configure -prefix /usr/local/qt/qt_4.8.5/x86

5 编译&安装

make -j8

make install

6 添加到qt creator中
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: