I am trying to build qt5 on windows. I am following the instructions from http://qt-project.org/wiki/Building_Qt_5_from_Git . However, I am not even able retrieve the soure code successfully. The inital command “git clone git://gitorious.org/qt/qt5.git qt5” completed successfully. But the next command “perl init-repository” failed with the following error information:

+ git submodule init 0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487
AllocationBase 0×0, BaseAddress 0×68560000, RegionSize 0×170000, State 0×10000
c:\program files (x86)\git\bin\sh.exe: *** Couldn’t reserve space for cygwin’s h
eap, Win32 error 0
git submodule init exited with status 256 at init-repository line 268. Qt::InitRepository::exe(‘Qt::InitRepository= HASH’, ‘git’, ‘sub
module’, ‘init’) called at init-repository line 373 Qt::InitRepository::git_submodule_init(‘Qt:: InitRepository=HASH’) called at init-repository line 569 Qt::InitRepository::run(‘Qt::InitRepository= HASH’) called at i
nit-repository line 590

I am using msysgit (Git for Windows) 1.8.1.2, Active Perl 5.16.3 and Python 3.3.0.