1 下载QT
1)进入官网:https://www.qt.io/
2)点击Download:https://www.qt.io/download/
3)找到Open Source,点击Get Started:https://www.qt.io/download-open-source/
4) 检测到主机是windows,实际需要下载Linux 32bit版本,点击View All DownLoads:
请使用uname -a 或者 lsb_release -a 查看Linux版本位数
[root@jack lib]# uname -a
Linux jack 2.6.32-279.el6.i686 #1 SMP Wed Jun 13 18:23:32 EDT 2012 i686 i686 i386 GNU/Linux
否则下载了64位安装包出现如下的错误:
./qt-opensource-linux-x64-5.7.0.run
bash: ./qt-opensource-linux-x64-5.7.0.run: cannot execute binary file
5) 显示的是windows或者OSX或者Linux 64bit,找到
Qt5.6 and all older versions of Qt are available in the archive:
http://download.qt.io/archive/qt/
6)进入5.2目录,下载qt-linux-opensource-5.2.0-x86-offline.run
如果目标机器是64位,下载:qt-linux-opensource-5.2.0-x86_64-offline.run
请使用迅雷下载,避免断点下载失败&