Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-35980

Compilation of Qt 5.2 winextras fails on Windows 7 with MSVC 2008

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Done
    • Affects Version/s: 5.2.0
    • Fix Version/s: 5.3.0
    • Component/s: Extras: Win
    • Labels:
      None
    • Environment:
      Windows 7 64 bit, MSVC 2008 SP1, Windows 7 SDK
    • Commits:
      eb9ae46a3ee36f4ece3ec21413589c278f8d8c16 (winextras, dev, 20.1.2014, 5.3.0)

      Description

      I am trying to build my own version of Qt 5.2 from a Git checkout, but I'm getting compiler errors in the winextras module.

      I followed the instructions in the"Getting the source code" topic at http://qt-project.org/wiki/Building-Qt-5-from-Git.

      I'm using Windows 7 64-bit with the VS2008SP1 compiler and with the Windows 7 SDK installed. I have previously successfully built Qt 5.1-beta1 using this same configuration.

      I am using the following configuration command executed from a Visual Studio command prompt:
      c:\qt5test\qt5>configure -confirm-license -debug-and-release -opensource -gui -widgets -no-qml-debug -nomake examples -nomake tests -no-sql-mysql -opengl desktop -make-tool jom

      When I execute jom, and wait for quite a while, I eventually get these error messages:

      cl -c -nologo -Zm200 -Zc:wchar_t -Zi -MDd -MP -GR -W3 -w34100 -w34189 -D UNICODE -DWIN32 -DQT_BUILD_WINEXTRAS_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED _WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -D_USE_MATH_DEFINES -DNTDDI_VE RSION=0x06010000 -D_WIN32_WINNT=0x0601 -DQT_NO_EXCEPTIONS -DQT_GUI_LIB -DQT_CORE _LIB -I"C:\qt5test\qt5\qtbase\include" -I"C:\qt5test\qt5\qtbase\include\QtWinExt ras" -I"C:\qt5test\qt5\qtbase\include\QtWinExtras\5.2.0" -I"C:\qt5test\qt5\qtbas e\include\QtWinExtras\5.2.0\QtWinExtras" -I"tmp" -I"C:\qt5test\qt5\qtbase\includ e\QtGui" -I"C:\qt5test\qt5\qtbase\include\QtCore" -I".moc\debug" -I"C:\qt5test\q t5\qtbase\mkspecs\win32-msvc2008" -Fo.obj\debug\ @C:\Users\aclight\AppData\Local \Temp\moc_qwintaskbarprogress.obj.6880.1934.jom moc_qwintaskbarprogress.cpp
      qwinthumbnailtoolbar.cpp(257) : error C2664: 'ITaskbarList3::ThumbBarAddButtons'  : cannot convert parameter 3 from 'THUMBBUTTON [7]' to 'THUMBBUTTON'         No constructor could take the source type, or constructor overload resol ution was ambiguous
      qwinthumbnailtoolbar.cpp(322) : error C2065: 'THBN_CLICKED' : undeclared identif ier
      qwinthumbnailtoolbar.cpp(347) : error C2676: binary '|=' : 'THUMBBUTTONFLAGS' do es not define this operator or a conversion to a type acceptable to the predefin ed operator
      qwinthumbnailtoolbar.cpp(349) : error C2676: binary '|=' : 'THUMBBUTTONFLAGS' do es not define this operator or a conversion to a type acceptable to the predefin ed operator
      qwinthumbnailtoolbar.cpp(351) : error C2676: binary '|=' : 'THUMBBUTTONFLAGS' do es not define this operator or a conversion to a type acceptable to the predefin ed operator
      qwinthumbnailtoolbar.cpp(353) : error C2676: binary '|=' : 'THUMBBUTTONFLAGS' do es not define this operator or a conversion to a type acceptable to the predefin ed operator
      qwinthumbnailtoolbar.cpp(355) : error C2676: binary '|=' : 'THUMBBUTTONFLAGS' do es not define this operator or a conversion to a type acceptable to the predefin ed operator
      qwinthumbnailtoolbar.cpp(357) : error C2676: binary '|=' : 'THUMBBUTTONFLAGS' do es not define this operator or a conversion to a type acceptable to the predefin ed operator
      qwinthumbnailtoolbar.cpp(364) : error C2676: binary '|=' : 'THUMBBUTTONMASK' doe s not define this operator or a conversion to a type acceptable to the predefine d operator
      qwinthumbnailtoolbar.cpp(366) : error C2676: binary '|=' : 'THUMBBUTTONMASK' doe s not define this operator or a conversion to a type acceptable to the predefine d operator
      qwinthumbnailtoolbar.cpp(368) : error C2676: binary '|=' : 'THUMBBUTTONMASK' doe s not define this operator or a conversion to a type acceptable to the predefine d operator
      jom: C:\qt5test\qt5\qtwinextras\src\winextras\Makefile.Debug [.obj\debug\qwinthu mbnailtoolbar.obj] Error 2
      jom: C:\qt5test\qt5\qtwinextras\src\winextras\Makefile.Debug [.obj\debug\qwinjum plistcategory.obj] Error 2
      jom: C:\qt5test\qt5\qtwinextras\src\winextras\Makefile [debug-all] Error 2
      jom: C:\qt5test\qt5\qtwinextras\src\Makefile [sub-winextras-make_first-ordered] Error 2
      jom: C:\qt5test\qt5\qtwinextras\Makefile [sub-src-make_first] Error 2
      jom: C:\qt5test\qt5\Makefile [module-qtwinextras-make_first] Error 2
      

      If I re-run configure and add the -skip winextras parameters, and then run jom again, I am able to build successfully.

      The combination of Windows 7 and MSVC 2008 is not listed as supported at http://qt-project.org/doc/qt-5/supported-platforms.html.

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              • Assignee:
                kleint Friedemann Kleint
                Reporter:
                aclight Adam Light
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes