如何在 Windows 上从 Git 存储库构建最新的 Qt?
我尝试使用以下命令从 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 上的源代码存档成功构建了 Qt(使用相同的命令)。 com。
源代码存档和Git存储库中的代码有什么区别吗? Git 存储库是否已损坏/不完整,或者我是否需要使用其他或不同的命令来构建它?
I have tried to build a latest Qt from the Git repository on Windows with the following commands:
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
Unfortunately configuration stops very early with error the following error:
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
I have sucessfully built Qt (with the same commands) from source code archive on qt.nokia.com.
Is there any difference between the code in the source code archive and the Git repository? Is the Git repository broken/incomplete, or do I need to use additional or different commands to build it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我有两个想法:
1)尝试在 c:\qt\latest\qt\ 子文件夹中构建。例如:
2) 正如这里提到的,您可能需要Perl。
尝试安装 ActivePerl 即
I have two ideas:
1) Try to build in c:\qt\latest\qt\ subfolder. For example:
2) As mentioned here may be you need Perl.
Try to install ActivePerl i.e.