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

Qt6.0 Windows: namespace build fails on qtquickcontrols2

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 6.0.1, 6.1.0 Alpha
    • Fix Version/s: None
    • Labels:
    • Platform/s:
      Windows

      Description

      Namespace build fails on both MinGW and MSVC at

      FAILED: qtquickcontrols2/src/imports/nativestyle/CMakeFiles/qtquickcontrols2nativestyleplugin.dir/qstyle/windows/qquickwindowsstyle.cpp.obj
      

      Steps to reproduce: download Qt src archive (not tested from git), configure:

      cmake -DCMAKE_C_COMPILER=cl.exe -DCMAKE_CXX_COMPILER=cl.exe -GNinja -DCMAKE_BUILD_TYPE=Release -DQT_BUILD_EXAMPLES=OFF -DBUILD_WITH_PCH=OFF -DOPENSSL_ROOT_DIR=C:\openssl\include\.. -DFEATURE_system_zlib=OFF -DPostgreSQL_ROOT=C:\Utils\postgresql\pgsql\lib\.. -DQT_BUILD_TESTS=OFF -DQT_NAMESPACE=RTA C:\Users\joaijala\RTA\src-6.0.1 -DCMAKE_INSTALL_PREFIX:PATH=C:\Users\joaijala\RTA\src-6.0.1
      

      -> configure finishes fine.

      Build with 'cmake --build . --parallel' in C:\Users\joaijala\RTA\src-6.0.1

      -> build fails with:

      [4103/5229] Building CXX object qtquickcontrols2\src\imports\nativestyle\CMakeFiles\qtquickcontrols2nativestyleplugin.dir\qstyle\windows\qquickwindowsstyle.cpp.obj
      FAILED: qtquickcontrols2/src/imports/nativestyle/CMakeFiles/qtquickcontrols2nativestyleplugin.dir/qstyle/windows/qquickwindowsstyle.cpp.obj 
      C:\PROGRA~2\MICROS~2\2019\PROFES~1\VC\Tools\MSVC\1427~1.291\bin\Hostx64\x64\cl.exe  /nologo /TP -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_GUI_LIB -DQT_NAMESPACE=RTA -DQT_NETWORK_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_OPENGL_LIB -DQT_PLUGIN -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_QUICKCONTROLS2_LIB -DQT_QUICKTEMPLATES2_LIB -DQT_QUICK_LIB -DUNICODE -DWIN32 -DWIN64 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -Dqtquickcontrols2nativestyleplugin_EXPORTS -Iqtquickcontrols2\src\imports\nativestyle\qtquickcontrols2nativestyleplugin_autogen\include -Iqtquickcontrols2\src\imports\nativestyle -Iqtbase\include -Iqtquickcontrols2\src\imports\nativestyle\items -Iqtquickcontrols2\src\imports\nativestyle\qstyle -Iqtquickcontrols2\src\imports\nativestyle\util -Iqtdeclarative\src\qml -Iqtbase\include\QtQml\6.0.0 -Iqtbase\include\QtQml\6.0.0\QtQml -Iqtbase\src\corelib -Iqtbase\include\QtCore\6.0.0 -Iqtbase\include\QtCore\6.0.0\QtCore -Iqtbase\include\QtCore -Iqtbase\mkspecs\win32-msvc -Iqtbase\include\QtQml -Iqtbase\include\QtNetwork -Iqtquickcontrols2\src\imports\nativestyle\qstyle\windows -Iqtbase\include\QtGui -IC:\VulkanSDK\1.2.141.2\Include -Iqtbase\include\QtQuick -Iqtbase\include\QtQmlModels -Iqtbase\include\QtOpenGL -Iqtbase\include\QtQuickControls2 -Iqtbase\include\QtQuickTemplates2 -Iqtbase\src\gui -Iqtbase\include\QtGui\6.0.0 -Iqtbase\include\QtGui\6.0.0\QtGui -Iqtquickcontrols2\src\quickcontrols2 -Iqtbase\include\QtQuickControls2\6.0.0 -Iqtbase\include\QtQuickControls2\6.0.0\QtQuickControls2 -Iqtdeclarative\src\quick -Iqtbase\include\QtQuick\6.0.0 -Iqtbase\include\QtQuick\6.0.0\QtQuick -Iqtdeclarative\src\qmlmodels -Iqtbase\include\QtQmlModels\6.0.0 -Iqtbase\include\QtQmlModels\6.0.0\QtQmlModels -Iqtquickcontrols2\src\quicktemplates2 -Iqtbase\include\QtQuickTemplates2\6.0.0 -Iqtbase\include\QtQuickTemplates2\6.0.0\QtQuickTemplates2 /DWIN32 /D_WINDOWS /GR /EHsc /DNDEBUG -O2 -MD /W3 /wd4530 /wd4577 -Zc:__cplusplus -permissive- -utf-8 -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:externConstexpr -Zc:wchar_t -std:c++17 /showIncludes /Foqtquickcontrols2\src\imports\nativestyle\CMakeFiles\qtquickcontrols2nativestyleplugin.dir\qstyle\windows\qquickwindowsstyle.cpp.obj /Fdqtquickcontrols2\src\imports\nativestyle\CMakeFiles\qtquickcontrols2nativestyleplugin.dir\ /FS -c qtquickcontrols2\src\imports\nativestyle\qstyle\windows\qquickwindowsstyle.cpp
      qtquickcontrols2\src\imports\nativestyle\qstyle\windows\qquickwindowsstyle.cpp(100): error C2653: 'QWindowsStylePrivate': is not a class or namespace name
      qtquickcontrols2\src\imports\nativestyle\qstyle\windows\qquickwindowsstyle.cpp(100): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
      qtquickcontrols2\src\imports\nativestyle\qstyle\windows\qquickwindowsstyle.cpp(100): error C2610: 'int RTA::RTA::QWindowsStylePrivate(void)': is not a special member function or comparison operator which can be defaulted
      qtquickcontrols2\src\imports\nativestyle\qstyle\windows\qquickwindowsstyle.cpp(102): error C2653: 'QWindowsStylePrivate': is not a class or namespace name
      qtquickcontrols2\src\imports\nativestyle\qstyle\windows\qquickwindowsstyle.cpp(107): error C2653: 'QWindowsStylePrivate': is not a class or namespace name
      qtquickcontrols2\src\imports\nativestyle\qstyle\windows\qquickwindowsstyle.cpp(205): error C2653: 'QWindowsStyle': is not a class or namespace name
      qtquickcontrols2\src\imports\nativestyle\qstyle\windows\qquickwindowsstyle.cpp(205): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
      qtquickcontrols2\src\imports\nativestyle\qstyle\windows\qquickwindowsstyle.cpp(205): error C2061: syntax error: identifier 'QWindowsStylePrivate'
      qtquickcontrols2\src\imports\nativestyle\qstyle\windows\qquickwindowsstyle.cpp(206): error C2550: 'RTA::RTA::QWindowsStyle': constructor initializer lists are only allowed on constructor definitions
      qtquickcontrols2\src\imports\nativestyle\qstyle\windows\qquickwindowsstyle.cpp(207): warning C4508: 'RTA::RTA::QWindowsStyle': function should return a value; 'void' return type assumed
      qtquickcontrols2\src\imports\nativestyle\qstyle\windows\qquickwindowsstyle.cpp(214): error C2653: 'QWindowsStyle': is not a class or namespace name
      qtquickcontrols2\src\imports\nativestyle\qstyle\windows\qquickwindowsstyle.cpp(214): error C2065: 'dd': undeclared identifier
      qtquickcontrols2\src\imports\nativestyle\qstyle\windows\qquickwindowsstyle.cpp(214): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
      qtquickcontrols2\src\imports\nativestyle\qstyle\windows\qquickwindowsstyle.cpp(214): error C2365: 'RTA::RTA::QWindowsStyle': redefinition; previous definition was 'function'
      

      Full log attached.

      Namespace build works fine on linux and macOS.

        Attachments

        1. build_log.txt
          488 kB
        2. patch.diff
          1.0 kB

          Issue Links

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

            Activity

              People

              Assignee:
              smd Jan Arve
              Reporter:
              joaijala Johanna Äijälä
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes