qt - 如何在 Windows 上从 Git 存储库构建最新的 Qt?

标签 qt build-process building

我尝试从 Git repository 构建最新的 Qt在 Windows 上使用以下命令:

mkdir c:\qt\latest
cd c:\qt\latest
git clone git://gitorious.org/qt/qt.git
cd qt
set PATH=%PATH%;c:\qt\latest\qt\bin
configure.exe

不幸的是,配置很早就停止并出现以下错误:

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01 Copyright (C) Microsoft Corporation.  All rights reserved.

cl -c -Foproject.obj  -W3 -nologo -O2  -I. -Igenerators -Igenerators\unix -Igenerators\win32 -Igenerators\mac -Igenerators\symbian  -IC:\Qt\latest\qt\include -IC:\Qt\latest\qt\include\QtCore  -IC:\Qt\latest\qt\include -IC:\Qt\latest\qt\include\QtCore  -IC:\Qt\latest\qt\src\corelib\global  -IC:\Qt\latest\qt\src\corelib\xml  -IC:\Qt\latest\qt\mkspecs\win32-msvc2008   -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NODLL -DQT_NO_STL  -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO_THREAD  -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_NO_PCRE -DQT_BOOTSTRAPPED   -DQMAKE_OPENSOURCE_EDITION project.cpp
project.cpp c:\qt\latest\qt\qmake\project.h(45) : fatal error C1083: Cannot open include file: 'qstringlist.h': No such file or directory
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\cl.EXE"' : return code '0x2' Stop.
Building qmake failed, return code 2

我已经从qt.nokia.com上的源代码存档成功构建了Qt(使用相同的命令) .

源代码存档中的代码与Git 存储库之间有什么区别吗? Git 存储库是否已损坏/不完整,或者我是否需要使用其他或不同的命令来构建它?

最佳答案

我有两个想法:

1) 尝试在 c:\qt\latest\qt\子文件夹中构建。例如:

mkdir qt-build
cd qt-build
..\qt\configure
(n)make

2) 如前所述 here也许您需要 Perl。

Make sure that you have Perl installed and that it is working. If configure complains about not being able to find headers. It means that syncqt, a program run by configure could not find your Perl installation.

尝试安装ActivePerl

关于qt - 如何在 Windows 上从 Git 存储库构建最新的 Qt?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2084766/

相关文章:

c++ - 调整 Qt 窗口大小时出现闪烁的白色区域

c++ Delete 像 QObject 一样从基类派生

android - ArcGIS - 不满意的链接错误查找库返回 null - Hello World 示例应用程序

c++ - Qt Creator 5 - 没有设置调试器

c++ - 转发从 QCoreApplication::postEvent 收到的 QEvent 是否安全

c++ - 在 VS 中构建由 Boost 驱动的解决方案

java - Gradle-build .war 文件中的重复文件

android - Android 上的 XML 文件 : aborting build. 中的错误

google-app-engine - App Engine 索引构建停滞不前

java - 我在 Eclipse Android 项目中真正需要哪些构建器?