2010-01-18 20 views
2

我試圖在Windows上從Git repository建立一個最新的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 (使用相同的命令)來自qt.nokia.com上的源代碼檔案。

源代碼檔案Git存儲庫中的代碼是否有區別? Git存儲庫是否損壞/不完整,還是需要使用其他或不同的命令來構建它?

+0

http://knowledges.tumblr.com/post/753240784/how-to-statically-compile-qt-from-git – 2010-06-30 15:48:42

回答

4

我有兩個想法:

1)儘量建立在C:\ QT \最新\ 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.

嘗試安裝即

+0

沒錯,問題是用Perl 。似乎我錯過了先決條件。非常感謝! – grigoryvp 2010-01-18 12:24:25

相關問題