1.下载安装文件
qt-everywhere-opensource-src-4.7.4.tar.gz
2.解压
tar -xzvf qt-everywhere-opensource-src-4.7.4.tar.gz
3.更改目录权限
chmod 777 qt-everywhere-opensource-src-4.7.4
cd qt-everywhere-opensource-src-4.7.4
4.执行配置文件命令
./configure
这时候出现下面情况:
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',即自由版本。然后输出以下内容:
You are licensed to use this software under the terms of
the Lesser GNU General Public License (LGPL) versions 2.1.
You are also licensed to use this software under the terms of
the GNU General Public License (GPL) versions 3.
Type '3' to view the GNU General Public License version 3.
Type &