关于QT安装
QT的早期版本和现在版本有点变化,提供的文件也不尽相同,最新的版本为5.2.1,我这里用的是4.8.4,一个完整的QT应该包括QT库、IDE也就是QT creator.
在Linux下的安装中,目前看到的主要有三种方法: http://www.cnblogs.com/emouse/archive/2013/01/28/2880142.html
1、Ubuntu下使用atp-get安装,方法如下(未验证)或sudo apt-get install qt4-* 让他自己来安装。
sudo apt-get install qt4-dev-tools #开发包 sudo apt-get install qtcreator #IDE sudo apt-get install qt4-doc #开发帮助文档 sudo apt-get install qt4-qtconfig #配置工具 sudo apt-get install qt4-demos #DEMO源码 QT
http://wiki.ubuntu.com.cn/Qt
2. bin文件直接安装,文件名为qt-sdk-……,一个./bin直接包括了所有相关工具,安装起来最为简单方便,但是目前的4.8.4在几个网站上已经找不到总的sdk的bin文件了,老版本的还是可以的。
3.源码安装。
这里就涉及到源码下载的问题了。
QT有好几个下载网站,这里汇总介绍,自从诺基亚公司放弃Meego、遣散Qt开发团队以后,Qt商业版本的网站移到了qt.digia.com,而开源版本则放到了qt-project.org。
下载1: http://qt-project.org/downloads
Qt 5.2
Select thefile according to your operating system fromthe list below to get the latest Qt 5.2 foryour computer. The binary packages include Qt5.2.1 libraries and Qt Creator 3.0.1
Develop with a Qt Enterprise Commercial License
The Qt Enterprise commercial license offers varied licensingterms and includes additional functionality, support and product updates.
下载3: 还有从nokia官网直接下载的,可能是早期的方法。也没实践过。不太看好。http://jinsuo2007.blog.163.com/blog/static/192279952010669457379/
这是官方下载地址:http://qt.nokia.com/downloads
点击右下角的 ftp.qt.nokia.com -Archive
You can find our archive of previous Qt releases here.
可以进入ftp的归档下载地址,这里有各种版本的源码下载:
ftp://ftp.qt.nokia.com/qt/source/
如果想交叉编译和安装到ARM开发板上,就需要源码安装方式。然后将库交叉编译以后拷贝到开发板的根文件系统一份,用于运行时调用。而HOST侧用于编译使用。
QT库的编译和安装 http://blog.youkuaiyun.com/it_newborn/article/details/9208589