http://download.qt.io/archive/
Qt源码下载
这是官方下载地址: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/
1、编译64位QT
QT官网没有windows 64位系统的Qt library,只有32位的。在ftp://ftp.qt.nokia.com/qt/source/上下载qt-every-opensource-src-4.7.4.zip,qt-4.7.4能够与VS2008兼容,而且还支持编译最新版的64位QtCreator。
编译QT的过程如下:
源码解压后的文件改名为qt-4.7.4,放到I盘下。打开 所有程序 -> Microsoft Visual Studio 2008 -> Visual Studio Tools -> Visual Studio 2008 x64 Win4 命令提示 这个terminal,输入如下命令:
cd I:\qt-4.7.4
I:
configure.exe -platform win32-msvc2008 -debug (需要等待一阵儿)
nmake -f makefile (开始进行编译)
编译成功后,我们将I:\qt-4.7.4\bin添加到环境变量path中。
2、编译QtCreator
QtCreator是强大的跨平台集成开发环境,可单独使用,也可与Qt库和开发工具组成一套完整的Qt SDK。Qt官网只提供windows 32位的安装包,使用64位系统的需要自己编译。
在ftp://ftp.qt.nokia.com/qt/source/上下载qt-creator-2.4.1-src.zip,解压到I盘,并建立名为QtCreator-2.4.1的文件夹。编译QtCreator-2.4.1的前提是你已经安装了VS2008 x64和Qt-4.7.4 x64,这些软件的安装可以在上一篇随笔中找到。
打开 所有程序 -> Microsoft Visual Studio 2008 -> Visual Studio Tools -> Visual Studio 2008 x64 Win4 命令提示 这个terminal,输入如下命令:
cd I:\QtCreator-2.4.1
qmake I:\qt-creator-2.4.1-src\qtcreator.pro
nmake -f makefile
需要编译一段时间。
I:\QtCreator-2.4.1\bin\qtcreator.exe便是软件的入口。