[Development] Fatal error occurred when building Qt5 Alpha on Win7(x64)

Loaden loaden at gmail.com
Fri Apr 6 01:08:33 CEST 2012


You should use -prefix=%CD%\qtbase, not the other places.
see:

> configure -opensource -prefix %CD%\qtbase -confirm-license
> -debug-and-release -fast -mp -nomake examples



2012/4/5 杨昊 <yangh2007 at gmail.com>

> Hi all!
>
> When building Qt5 it reports that the compiler cannot open include file
> 'QStack', 'QtDebug', 'QString' and 'QUrl' when compiling acceltree
> files. Seems that it forgot adding "..\..\include\QtCore" into its include
> path since those "missing files" all exist under the QtCore directory
> (qtbase\include\QtCore).
>
> Below is the detailed report:
>
>
> ==============================================================================
> Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
> Copyright (C) Microsoft Corporation.  All rights reserved.
>
>         cl -c -nologo -Zm200 -Zc:wchar_t -Zi -MDd -W3 -w34100 -w34189 -GR
> -EHsc
> -DQT_SHARED -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT
> -DQT_BUILD_XMLPATTERNS_LIB
> -DQT_NO_USING_NAMESPACE -DQT_MAKEDLL -DQT_NO_CAST_TO_ASCII
> -DQT_ASCII_CAST_WARNI
> NGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -D_USE_MATH_DEFINES -DQT_DLL
> -DQT_HA
> VE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2
> -I"..\..\..
> \qtbase\include" -I"..\..\include\QtXmlPatterns\5.0.0"
> -I"..\..\include\QtXmlPat
> terns\5.0.0\QtXmlPatterns" -I"..\..\include"
> -I"..\..\include\QtXmlPatterns" -I"
> ..\..\include" -I"tmp" -I"acceltree" -I"data" -I"api" -I"environment"
> -I"expr" -
> I"functions" -I"iterators" -I"janitors" -I"parser" -I"schema" -I"type"
> -I"utils"
>  -I"debug" -I"..\..\..\qtbase\mkspecs\win32-msvc2010" -Fodebug\
> @C:\Users\new\Ap
> pData\Local\Temp\nmA56D.tmp
> qacceltree.cpp
> qacceltreeresourceloader.cpp
> qacceliterators.cpp
> qcompressedwhitespace.cpp
> acceltree\qacceltree.cpp(42) : fatal error C1083: Cannot open include
> file: 'QSt
> ack': No such file or directory
> acceltree\qacceliterators.cpp(42) : fatal error C1083: Cannot open include
> file:
>  'QtDebug': No such file or directory
> acceltree\qcompressedwhitespace.cpp(42) : fatal error C1083: Cannot open
> include
>  file: 'QString': No such file or directory
>
> D:\TDDOWNLOAD\qt-everywhere-opensource-src-5.0.0-alpha\qtxmlpatterns\src\xmlpatt
> erns\data\qatomicstring_p.h(55) : fatal error C1083: Cannot open include
> file: '
> QUrl': No such file or directory
> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> Studio 10.0
> \VC\BIN\cl.EXE"' : return code '0x2'
> Stop.
> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> Studio 10.0
> \VC\BIN\nmake.exe"' : return code '0x2'
> Stop.
> NMAKE : fatal error U1077: 'cd' : return code '0x2'
> Stop.
> NMAKE : fatal error U1077: 'cd' : return code '0x2'
> Stop.
> cd qtxmlpatterns && "C:\Program Files (x86)\Microsoft Visual Studio
> 10.0\VC\BIN\
> nmake.exe"  exited with status 512 at build line 64
>         Qt::Build::exe('Qt::Build=HASH(0x57d354)', 'cd qtxmlpatterns &&
> "C:\Prog
> ram Files (x86)\Microsoft Visual ...') called at build line 105
>         Qt::Build::exeLowPriv('Qt::Build=HASH(0x57d354)', 'cd
> qtxmlpatterns && "
> C:\Program Files (x86)\Microsoft Visual ...') called at build line 377
>         Qt::Build::build_project('Qt::Build=HASH(0x57d354)',
> 'qtxmlpatterns') ca
> lled at build line 408
>         Qt::Build::build_qt('Qt::Build=HASH(0x57d354)') called at build
> line 437
>
>         Qt::Build::run('Qt::Build=HASH(0x57d354)') called at build line 446
> ==============================================================================
>
>
> Any help is greatly appreciated!
> Thanks
>
> YANG Hao / 杨昊
>
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development
>
>


-- 
Regards
Loaden
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120406/c587de01/attachment.html>


More information about the Development mailing list