环境:
Linux:Ubuntu 16.04 X64
QT:5.7.0
QT的编译与安装
软件下载
名称:qt-everywhere-opensource-src-5.7.0.tar.gz
地址:http://ftp.vim.org/languages/qt/archive/qt/5.7/5.7.0/single/
步骤:
拷贝文件到自己想要的文件夹,解压:
tar zxvf qt-everywhere-opensource-src-5.7.0.tar.gz
进入解压后文件目录,执行配置
cd qt-everywhere-opensource-src-5.7.0/
./configure -prefix /opt/qt5.7.0/
opt/qt5.7.0是自定义的安装目录,目录不存在会自动创建。
配置过程中会有以下提示:
Which edition of Qt do you want to use ?
Type 'c' if you want to use the Commercial Edition.
Type 'o' if you want to use the Open Source Edition.
选择 o,回车
This is the Open Source Edition.
You are licensed to use this software under the terms of
the Lesser GNU General Public License (LGPL) versions 2.1.
<