要使用 VS2013 中的 Visual C++ 编译器 (MSVC) 自行编译 Qt 框架,您可以使用本教程从 Git 构建 Qt 5.
这是我上面的教程的简短版本(适用于 Windows 7 (amd64) 和 OpenGL):
1.安装Visual Studio 2013(可能是VS2013速递版)。
2. 安装Git, Python, Ruby, and Perl(是的,您将需要所有这些工具)。
每个安装向导中都有一个选项可将工具添加到 PATH 变量。检查此选项或自行添加。
3. 转至:Windows 开始菜单 -> 所有程序 -> Visual Studio 2013 -> Visual Studio 工具
Run: VS2013 x64 本机工具命令提示符
这与运行 a 相同cmd然后执行:
> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat amd64
4. 转到所需的文件夹,克隆 Qt 存储库并初始化它。
> git clone git://gitorious.org/qt/qt5.git qt5
> cd qt5
> git checkout stable
> perl init-repository
如果你不需要 WebKit 你可以运行:
> perl init-repository --no-webkit
5.配置并编译。
> configure -developer-build -opensource -confirm-license -nomake examples -nomake tests -opengl desktop
> nmake
Done.