2

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

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 存储库是否损坏/不完整,还是我需要使用其他或不同的命令来构建它?

4

1 回答 1

4

我有两个想法:

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

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

2)正如这里提到的,你可能需要 Perl。

确保您已安装 Perl 并且它正在工作。如果配置抱怨找不到标头。这意味着由 configure 运行的程序 syncqt 找不到您的 Perl 安装。

尝试安装ActivePerl

于 2010-01-18T12:03:40.027 回答