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

[REG 6.2.0->6.2.1] quickcontrols2/texteditor not compiling on Wasm

    XMLWordPrintable

    Details

    • Platform/s:
      Linux/X11, WebAssembly, Windows
    • Commits:
      d0507b6d5eab28f36cc39c1f46d8a87ab76bb88e (qt/qtdeclarative/dev) dca065bc11a42159ece8bef745fcd582be44bcb3 (qt/qtdeclarative/6.2)

      Description

      Install Qt6.2.1 Wasm binaries on Linux (openSUSE15.3 used in test) and configure example quickcontrols2/texteditor

      /home/qt/RTA/qt5/6.2.1/wasm_32/bin/qt-cmake -S /home/qt/RTA/qt5/Examples/Qt-6.2.1/quickcontrols2/texteditor -B /home/qt/RTA/qt5/Examples/Qt-6.2.1/quickcontrols2/texteditor/bld_wasm_32

      -> passes fine.

      Build: 'cmake --build .', fails:

      wasm-ld: error: duplicate symbol: vtable for QQuickPlatformFontDialog
      >>> defined in /home/qt/RTA/qt5/6.2.1/wasm_32/./qml/Qt/labs/platform/libqtlabsplatformplugin.a(mocs_compilation.cpp.o)
      >>> defined in /home/qt/RTA/qt5/6.2.1/wasm_32/lib/libQt6QuickDialogs2QuickImpl.a(mocs_compilation.cpp.o)
      wasm-ld: error: duplicate symbol: typeinfo for QQuickPlatformFontDialog
      >>> defined in /home/qt/RTA/qt5/6.2.1/wasm_32/./qml/Qt/labs/platform/libqtlabsplatformplugin.a(mocs_compilation.cpp.o)
      >>> defined in /home/qt/RTA/qt5/6.2.1/wasm_32/lib/libQt6QuickDialogs2QuickImpl.a(mocs_compilation.cpp.o)
      wasm-ld: error: duplicate symbol: typeinfo name for QQuickPlatformFontDialog
      >>> defined in /home/qt/RTA/qt5/6.2.1/wasm_32/./qml/Qt/labs/platform/libqtlabsplatformplugin.a(mocs_compilation.cpp.o)
      >>> defined in /home/qt/RTA/qt5/6.2.1/wasm_32/lib/libQt6QuickDialogs2QuickImpl.a(mocs_compilation.cpp.o)
      wasm-ld: error: duplicate symbol: QQuickPlatformFileDialog::QQuickPlatformFileDialog(QObject*)
      >>> defined in /home/qt/RTA/qt5/6.2.1/wasm_32/./qml/Qt/labs/platform/libqtlabsplatformplugin.a(qquickplatformfiledialog.cpp.o)
      >>> defined in /home/qt/RTA/qt5/6.2.1/wasm_32/lib/libQt6QuickDialogs2QuickImpl.a(qquickplatformfiledialog.cpp.o)
      wasm-ld: error: duplicate symbol: QQuickPlatformFontDialog::QQuickPlatformFontDialog(QObject*)
      >>> defined in /home/qt/RTA/qt5/6.2.1/wasm_32/./qml/Qt/labs/platform/libqtlabsplatformplugin.a(qquickplatformfontdialog.cpp.o)
      >>> defined in /home/qt/RTA/qt5/6.2.1/wasm_32/lib/libQt6QuickDialogs2QuickImpl.a(qquickplatformfontdialog.cpp.o)
      wasm-ld: error: duplicate symbol: QQuickPlatformFontDialog::setCurrentFont(QFont const&)
      >>> defined in /home/qt/RTA/qt5/6.2.1/wasm_32/./qml/Qt/labs/platform/libqtlabsplatformplugin.a(qquickplatformfontdialog.cpp.o)
      >>> defined in /home/qt/RTA/qt5/6.2.1/wasm_32/lib/libQt6QuickDialogs2QuickImpl.a(qquickplatformfontdialog.cpp.o)
      wasm-ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
      em++: error: '/opt/emsdk/install/bin/wasm-ld @/tmp/emscripten_3ajqfvhi.rsp' failed (1)
      gmake[2]: *** [CMakeFiles/texteditor.dir/build.make:331: texteditor.js] Error 1
      gmake[1]: *** [CMakeFiles/Makefile2:85: CMakeFiles/texteditor.dir/all] Error 2
      gmake: *** [Makefile:136: all] Error 2
      

      Example was working in released 6.2.0.

      Same example fails on configure also on Windows, but was failing also with 6.2.0:

      C:\Users\qt\RTA\qt5\6.2.0\wasm_32\bin\qt-cmake -S C:\Users\qt\RTA\qt5\Examples\Qt-6.2.0\quickcontrols2\texteditor -B C:\Users\qt\RTA\qt5\Examples\Qt-6.2.0\quickcontrols2\texteditor\bld_wasm_32

      ->

        but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT
        FOUND.  Reason given by package:
        Failed to find Qt component "QuickControls2".
        Expected Config file at
        "C:/Users/qt/RTA/qt5/6.2.0/wasm_32/lib/cmake/Qt6QuickControls2/Qt6QuickControls2Config.cmake"
        exists
      CMake Error at C:/Users/qt/RTA/qt5/6.2.0/wasm_32/lib/cmake/Qt6/QtPublicWalkLibsHelpers.cmake:242 (message):
        The Network target is mentioned as a dependency for Qt6::Quick, but not
        declared.
      Call Stack (most recent call first):
        C:/Users/qt/RTA/qt5/6.2.0/wasm_32/lib/cmake/Qt6/QtPublicWalkLibsHelpers.cmake:212 (__qt_internal_walk_libs)
        C:/Users/qt/RTA/qt5/6.2.0/wasm_32/lib/cmake/Qt6/QtPublicWalkLibsHelpers.cmake:282 (__qt_internal_walk_libs)
        C:/Users/qt/RTA/qt5/6.2.0/wasm_32/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:588 (__qt_internal_collect_all_target_dependencies)
        C:/Users/qt/RTA/qt5/6.2.0/wasm_32/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:650 (_qt_internal_finalize_executable)
        C:/Users/qt/RTA/qt5/6.2.0/wasm_32/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:536:EVAL:1 (qt6_finalize_target)
        CMakeLists.txt:DEFERRED
      -- Configuring incomplete, errors occurred!
      See also "C:/Users/qt/RTA/qt5/Examples/Qt-6.2.0/quickcontrols2/texteditor/bld_wasm_32/CMakeFiles/CMakeOutput.log".
      See also "C:/Users/qt/RTA/qt5/Examples/Qt-6.2.0/quickcontrols2/texteditor/bld_wasm_32/CMakeFiles/CMakeError.log"
      

        Attachments

          Issue Links

          For Gerrit Dashboard: QTBUG-97465
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              mitch_curtis Mitch Curtis
              Reporter:
              joaijala Johanna Äijälä
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes