[Development] Current qt5 version from git does not compile with VS2010

Mülner, Helmut helmut.muelner at joanneum.at
Tue May 22 12:47:13 CEST 2012


Some days ago I wrote:
> a few days after the alpha release of qt5 the git version (with git pull qt5; perl init-repository -f) stopped to compile with Visual Studio 2010.
> Compiling qqmlopenmetaobject.cpp results in this error:
> d:\qt\qt5\qtdeclarative\include\qtqml\5.0.0\qtqml\private\../../../../../src/qml/qml/v8/qv8_p.h(42) : fatal error C1083: Cannot open include file: 'private/v8.h': No such file or  directory

I found what the problem was: I am using msys git which has problems with file permissions. After adding "git config-global core.filemode false" the checkout was ok.
But I still cannot compile.
I did in my qt5 clone (D:\Qt\qt5):
 - git submodule foreach --recursive 'git clean -dffx' && git clean -dffx
 - git pull
 - perl init-repository -f
 - configure -prefix %CD%\qtbase -confirm-license -opensource -make libs -nomake tests -nomake examples -no-incredibuild-xge -release -fast 1> configure.log 2>&1
 - perl build 1>build.log 2>&1

I get the following tail in build.log:
Project MEReading D:/Qt/qt5/qtactiveqt/examples/examples.pro
 Reading D:/Qt/qt5/qtactiveqt/examples/activeqt/activeqt.pro
  Reading D:/Qt/qt5/qtactiveqt/examples/activeqt/comapp/comapp.pro
  Reading D:/Qt/qt5/qtactiveqt/examples/activeqt/hierarchy/hierarchy.pro
  Reading D:/Qt/qt5/qtactiveqt/examples/activeqt/menus/menus.pro
  Reading D:/Qt/qt5/qtactiveqt/examples/activeqt/multiple/multiple.pro
  Reading D:/Qt/qt5/qtactiveqt/examples/activeqt/simple/simple.pro
  Reading D:/Qt/qt5/qtactiveqt/examples/activeqt/webbrowser/webbrowser.pro
  Reading D:/Qt/qt5/qtactiveqt/examples/activeqt/wrapper/wrapper.pro
  Reading D:/Qt/qt5/qtactiveqt/examples/activeqt/opengl/opengl.pro
SSAGE: Warning: unknown QT module: printsupport
Project MESSAGE: Warning: unknown QT module: widgets
Project MESSAGE: Warning: unknown QT module: gui
Project MESSAGE: Warning: unknown QT module: core
Project MESSAGE: Warning: unknown QT module: printsupport
Project MESSAGE: Warning: unknown QT module: widgets
Project MESSAGE: Warning: unknown QT module: gui
Project MESSAGE: Warning: unknown QT module: core
Project MESSAGE: Warning: unknown QT module: gui
Project MESSAGE: Warning: unknown QT module: core
Project MESSAGE: Warning: unknown QT module: gui
Project MESSAGE: Warning: unknown QT module: core
Project MESSAGE: Warning: unknown QT module: widgets
Project MESSAGE: Warning: unknown QT module: gui
Project MESSAGE: Warning: unknown QT module: core
Project MESSAGE: Warning: unknown QT module: widgets
Project MESSAGE: Warning: unknown QT module: gui
Project MESSAGE: Warning: unknown QT module: core
Project MESSAGE: Warning: unknown QT module: widgets
Project MESSAGE: Warning: unknown QT module: gui
Project MESSAGE: Warning: unknown QT module: core
Project MESSAGE: Warning: unknown QT module: widgets
Project MESSAGE: Warning: unknown QT module: gui
Project MESSAGE: Warning: unknown QT module: core
Project MESSAGE: Warning: unknown QT module: widgets
Project MESSAGE: Warning: unknown QT module: gui
Project MESSAGE: Warning: unknown QT module: core
Project MESSAGE: Warning: unknown QT module: widgets
Project MESSAGE: Warning: unknown QT module: gui
Project MESSAGE: Warning: unknown QT module: core
Project MESSAGE: Warning: unknown QT module: widgets
Project MESSAGE: Warning: unknown QT module: gui
Project MESSAGE: Warning: unknown QT module: core
Project MESSAGE: Warning: unknown QT module: widgets
Project MESSAGE: Warning: unknown QT module: gui
Project MESSAGE: Warning: unknown QT module: core
Project MESSAGE: Warning: unknown QT module: widgets
Project MESSAGE: Warning: unknown QT module: gui
Project MESSAGE: Warning: unknown QT module: core
Project MESSAGE: Warning: unknown QT module: widgets
Project MESSAGE: Warning: unknown QT module: gui
Project MESSAGE: Warning: unknown QT module: core
Project MESSAGE: Warning: unknown QT module: widgets
Project MESSAGE: Warning: unknown QT module: gui
Project MESSAGE: Warning: unknown QT module: core
Project MESSAGE: Warning: unknown QT module: widgets
Project MESSAGE: Warning: unknown QT module: gui
Project MESSAGE: Warning: unknown QT module: core
Project MESSAGE: Warning: unknown QT module: widgets
Project MESSAGE: Warning: unknown QT module: gui
Project MESSAGE: Warning: unknown QT module: core
Project MESSAGE: Warning: unknown QT module: widgets
Project MESSAGE: Warning: unknown QT module: gui
Project MESSAGE: Warning: unknown QT module: core
Project MESSAGE: Warning: unknown QT module: widgets
Project MESSAGE: Warning: unknown QT module: gui
Project MESSAGE: Warning: unknown QT module: core
Project MESSAGE: Warning: unknown QT module: widgets
Project MESSAGE: Warning: unknown QT module: gui
Project MESSAGE: Warning: unknown QT module: core
Project MESSAGE: Warning: unknown QT module: widgets
Project MESSAGE: Warning: unknown QT module: gui
Project MESSAGE: Warning: unknown QT module: core
Project MESSAGE: Warning: unknown QT module: widgets
Project MESSAGE: Warning: unknown QT module: gui
Project MESSAGE: Warning: unknown QT module: core
Project MESSAGE: Warning: unknown QT module: widgets
Project MESSAGE: Warning: unknown QT module: gui
Project MESSAGE: Warning: unknown QT module: core
Project MESSAGE: Warning: unknown QT module: widgets
Project MESSAGE: Warning: unknown QT module: gui
Project MESSAGE: Warning: unknown QT module: core
Project MESSAGE: Warning: unknown QT module: widgets
Project MESSAGE: Warning: unknown QT module: gui
Project MESSAGE: Warning: unknown QT module: core
Project MESSAGE: Warning: unknown QT module: opengl
Project MESSAGE: Warning: unknown QT module: widgets
Project MESSAGE: Warning: unknown QT module: gui
Project MESSAGE: Warning: unknown QT module: core
Project MESSAGE: Warning: unknown QT module: opengl
Project MESSAGE: Warning: unknown QT module: widgets
Project MESSAGE: Warning: unknown QT module: gui
Project MESSAGE: Warning: unknown QT module: core
Project MESSAGE: Warning: unknown QT module: opengl
Project MESSAGE: Warning: unknown QT module: widgets
Project MESSAGE: Warning: unknown QT module: gui
Project MESSAGE: Warning: unknown QT module: core
+ cd qtactiveqt && "C:\utils\jom.exe" 

jom 1.0.11 - empower your cores

	cd src\ && C:\utils\jom.exe -f Makefile
	cd tools\ && C:\utils\jom.exe -f Makefile
	cd idc\ && C:\utils\jom.exe -f Makefile
	C:\utils\jom.exe -f Makefile.Release
	cl -c -nologo -Zm200 -Zc:wchar_t -O2 -MD -GR -EHsc -W3 -w34100 -w34189 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_HAVE_SSE2 -I"..\..\..\..\qtbase\include" -I"release" -I"..\..\..\..\qtbase\mkspecs\win32-msvc2010" -Forelease\ @C:\Users\muh\AppData\Local\Temp\main.obj.8032.0.jom
main.cpp
main.cpp(42) : fatal error C1083: Cannot open include file: 'QFile': No such file or directory
jom: D:\Qt\qt5\qtactiveqt\src\tools\idc\Makefile.Release [release\main.obj] Error 2
jom: D:\Qt\qt5\qtactiveqt\src\tools\idc\Makefile [release] Error 2
jom: D:\Qt\qt5\qtactiveqt\src\tools\Makefile [sub-idc-make_default] Error 2
jom: D:\Qt\qt5\qtactiveqt\src\Makefile [sub-tools-make_default-ordered] Error 2
jom: D:\Qt\qt5\qtactiveqt\Makefile [sub-src-make_default] Error 2
'cd qtactiveqt && "C:\utils\jom.exe" ' failed: 512
Fatal failure building qtactiveqt at build line 443.
	Qt::Build::build_project('Qt::Build=HASH(0x3083c0)', 'qtactiveqt') called at build line 484
	Qt::Build::build_qt('Qt::Build=HASH(0x3083c0)') called at build line 544
	Qt::Build::run('Qt::Build=HASH(0x3083c0)') called at build line 553

The problems seems to be that -I"..\..\..\qtbase\QtCore" is missing.

If I use nmake instead of perl build, I get the following tail in my log file:
	cl -c -nologo -Zm200 -Zc:wchar_t -O2 -MD -W3 -w34100 -w34189 -GR -EHsc -DQT_SHARED -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_BUILD_SVG_LIB -DQT_NO_USING_NAMESPACE -DQT_MAKEDLL -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -D_USE_MATH_DEFINES -DQT_DLL -DQT_NO_DEBUG -DQT_HAVE_SSE2 -I"d:\Qt\qt5\qtbase\include" -I"..\..\include\QtSvg\5.0.0" -I"..\..\include\QtSvg\5.0.0\QtSvg" -I"..\..\include" -I"..\..\include\QtSvg" -I"..\..\include" -I"tmp" -I"d:\Qt\qt5\qtbase\src\3rdparty\harfbuzz\src" -I"..\3rdparty\zlib" -I"d:\Qt\qt5\qtbase\mkspecs\win32-msvc2010" -I"release" -I"d:\Qt\qt5\qtbase\mkspecs\default" -Forelease\ @C:\Users\muh\AppData\Local\Temp\nm2732.tmp
qsvggraphics.cpp
qsvghandler.cpp
qsvgnode.cpp
qsvgstructure.cpp
d:\qt\qt5\qtbase\mkspecs\win32-msvc2010\../win32-msvc2005/qplatformdefs.h(53) : fatal error C1083: Cannot open include file: 'qglobal.h': No such file or directory
qsvgstyle.cpp
d:\qt\qt5\qtsvg\src\svg\qsvgstyle_p.h(65) : fatal error C1083: Cannot open include file: 'qdebug.h': No such file or directory
qsvgfont.cpp
d:\qt\qt5\qtsvg\src\svg\qsvgfont_p.h(56) : fatal error C1083: Cannot open include file: 'qpainterpath.h': No such file or directory
qsvgtinydocument.cpp
d:\qt\qt5\qtsvg\src\svg\qsvgstyle_p.h(65) : fatal error C1083: Cannot open include file: 'qdebug.h': No such file or directory
qsvgrenderer.cpp
d:\qt\qt5\qtsvg\src\svg\qsvgstyle_p.h(65) : fatal error C1083: Cannot open include file: 'qdebug.h': No such file or directory
d:\qt\qt5\qtsvg\src\svg\qsvgstyle_p.h(65) : fatal error C1083: Cannot open include file: 'qdebug.h': No such file or directory
qsvgwidget.cpp
qgraphicssvgitem.cpp
d:\qt\qt5\qtsvg\src\svg\qsvgstyle_p.h(65) : fatal error C1083: Cannot open include file: 'qdebug.h': No such file or directory
qsvggenerator.cpp
d:\qt\qt5\qtsvg\src\svg\qsvgstyle_p.h(65) : fatal error C1083: Cannot open include file: 'qdebug.h': No such file or directory
.\qgraphicssvgitem.cpp(45) : fatal error C1083: Cannot open include file: 'qpainter.h': No such file or directory
.\qsvgwidget.cpp(48) : fatal error C1083: Cannot open include file: 'qpainter.h': No such file or directory
.\qsvggenerator.cpp(46) : fatal error C1083: Cannot open include file: 'qpainterpath.h': 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.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.

The log file at http://testresults.qt-project.org/ci/Qt5_master_Integration/latest-success/win32-msvc2010_Windows_7/log.txt.gz has this line:
5/22/12 4:10:47 PM EST: 	cl -c -nologo -Zm200 -Zc:wchar_t -O2 -MD -W3 -w34100 -w34189 -GR -DQT_SHARED -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_BUILD_SVG_LIB -DQT_NO_USING_NAMESPACE -DQT_MAKEDLL -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -D_USE_MATH_DEFINES -DQT_DLL -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_SSE2 -DQT_NO_EXCEPTIONS -I"..\..\..\qtbase\include\QtCore\5.0.0" -I"..\..\..\qtbase\include\QtCore\5.0.0\QtCore" -I"..\..\..\qtbase\include\QtCore" -I"..\..\..\qtbase\include\QtGui\5.0.0" -I"..\..\..\qtbase\include\QtGui\5.0.0\QtGui" -I"..\..\..\qtbase\include\QtGui" -I"..\..\..\qtbase\include\QtWidgets\5.0.0" -I"..\..\..\qtbase\include\QtWidgets\5.0.0\QtWidgets" -I"..\..\..\qtbase\include\QtWidgets" -I"..\..\..\qtbase\include" -I"..\..\include\QtSvg\5.0.0" -I"..\..\include\QtSvg\5.0.0\QtSvg" -I"..\..\include" -I"..\..\include\QtSvg" -I"..\..\include" -I"tmp\rcc\release_shared" -I"tmp" -I"..\..\..\qtbase\src\3rdparty\harfbuzz\src" -I"..\3rdparty\zlib" -I"tmp\moc\release_shared" -I"..\..\..\qtbase\mkspecs\win32-msvc2010" -Fotmp\obj\release_shared\ @C:\Users\pulse\AppData\Local\Temp\nmB189.tmp

Why is my clone missing some include directories?

-- 
Helmut Mülner
DIGITAL - Institute of Information and Communication Technologies

JOANNEUM RESEARCH Forschungsgesellschaft mbH
Steyrergasse 17, 8010 Graz, AUSTRIA

phone:  +43-316-876-2612
general fax: +43-316-876-1191
web:    http://www.joanneum.at/digital
e-mail: helmut.mülner at joanneum.at




More information about the Development mailing list