tags:

views:

235

answers:

3

Hello.

I have tried to build a latest Qt from Git repository on window. 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, very shortly configuration stops with 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\uni
x -Igenerators\win32 -Igenerators\mac -Igenerators\symbian  -IC:\Qt\latest\qt\in
clude -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_N
O_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NODLL -DQT_NO_STL  -DQT_NO_COMPRESS -DU
NICODE -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_OPEN
SOURCE_EDITION project.cpp
project.cpp
c:\qt\latest\qt\qmake\project.h(45) : fatal error C1083: Cannot open include fil
e: '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

Previously i have sucessfully built Qt with same commands from source code archive on www.qtsoftware.com Can anyone share his wisdom and hint me what's the difference between building Qt from source code archive and from Git repository? Is Git repository broken/incomplete, or i must issue some Git commands to switch into 'correct' branch, or i need to perform some additional undocumented steps?

+2  A: 

I have two ideas:

1) Try to build in c:\qt\latest\qt\ subfolder. For example:

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

2) As mentioned here may be you need 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.

Try to install ActivePerl i.e.

kemiisto
Yep, the problem was with perl. It seems that i missed the prerequisites. Thanks a lot!
Eye of Hell