Thank you techabc, Adding "-platform win32-msvc2010" doesn't solve. The warnings given by the configuration step (no matter whether adding the "-platform" option) are:
====================================== Qt is now configured for building. Just run nmake. To reconfigure, run nmake confclean and configure. + D:/TDDOWNLOAD/qt-everywhere-opensource-src-5.0.0/qtbase/bin/qmake D:/TDDOWNLOAD/qt-everywhere-opensource-src-5.0.0/qt.pro Project MESSAGE: Warning: unknown QT module: gui Project MESSAGE: Warning: unknown QT module: core ====================================== It failed to recognize 'gui' and 'core' modules. Could there be any relation between these warnings of configuration and the failure of build? YANG Hao 2012/4/6 techabc <[email protected]> > add "-platform win32-msvc2010" to configure will help you. > because after your configure command, some error info indicates this. > > 2012/4/6 杨昊 <[email protected]>: > > Hi Loaden, > > > > Thank you for your reply! > > > > I've tried "configure -opensource -prefix %CD%\qtbase -confirm-license > > -debug-and-release -fast -mp -nomake examples", but same errors were > > reported. > > > > Then I added these missing folders into the environment variable > %INCLUDE% > > (2 QtCore folders and 2 QtNetwork folders, I know this is a bad > trial... ) > > and made it compiled successfully, however, more errors occurred in the > > linking process. So it may not just be the problems concerning include > > paths. > > > > It is weird since my building process exactly follows the official guide > > http://qt-project.org/wiki/Qt-5-Alpha-building-instructions > > > > YANG Hao > > > > > > 2012/4/6 Loaden <[email protected]> > >> > >> 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 杨昊 <[email protected]> > >>> > >>> 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 > >>> [email protected] > >>> http://lists.qt-project.org/mailman/listinfo/development > >>> > >> > >> > >> > >> -- > >> Regards > >> Loaden > > > > > > > > > > _______________________________________________ > > Development mailing list > > [email protected] > > http://lists.qt-project.org/mailman/listinfo/development > > > _______________________________________________ > Development mailing list > [email protected] > http://lists.qt-project.org/mailman/listinfo/development > -- 杨昊 YANG Hao *Institute* of *CG & CAD,* Tsinghua University *Cogito, ergo sum*
_______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
