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

Highlighted example quickcontrols2/texteditor fails to compile on Wasm

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Duplicate
    • Affects Version/s: 6.2.1
    • Fix Version/s: None
    • Component/s: Quick: Controls 2
    • Labels:
    • Platform/s:
      WebAssembly

      Description

      Install Qt6.2.1 Wasm binaries, configure example quickcontrols2/texteditor

      /home/qt/RTA/Qt_6.2.1/6.2.1/wasm_32/bin/qt-cmake --trace-expand -S /home/qt/RTA/Qt_6.2.1/Examples/Qt-6.2.1/quickcontrols2/texteditor -B /home/qt/RTA/Qt_6.2.1/Examples/Qt-6.2.1/quickcontrols2/texteditor/bld_wasm_32

      No errors found, compile with cmake --build . in bld_wasm_32. Fails with:

      wasm-ld: error: duplicate symbol: QQuickPlatformFileDialog::QQuickPlatformFileDialog(QObject*)
      >>> defined in /home/qt/RTA/Qt_6.2.1/6.2.1/wasm_32/./qml/Qt/labs/platform/libqtlabsplatformplugin.a(qquickplatformfiledialog.cpp.o)
      >>> defined in /home/qt/RTA/Qt_6.2.1/6.2.1/wasm_32/lib/libQt6QuickDialogs2QuickImpl.a(qquickplatformfiledialog.cpp.o)wasm-ld: error: duplicate symbol: QQuickPlatformFileDialog::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)
      >>> defined in /home/qt/RTA/Qt_6.2.1/6.2.1/wasm_32/./qml/Qt/labs/platform/libqtlabsplatformplugin.a(mocs_compilation.cpp.o)
      >>> defined in /home/qt/RTA/Qt_6.2.1/6.2.1/wasm_32/lib/libQt6QuickDialogs2QuickImpl.a(mocs_compilation.cpp.o)wasm-ld: error: duplicate symbol: QQuickPlatformFileDialog::metaObject() const
      >>> defined in /home/qt/RTA/Qt_6.2.1/6.2.1/wasm_32/./qml/Qt/labs/platform/libqtlabsplatformplugin.a(mocs_compilation.cpp.o)
      >>> defined in /home/qt/RTA/Qt_6.2.1/6.2.1/wasm_32/lib/libQt6QuickDialogs2QuickImpl.a(mocs_compilation.cpp.o)wasm-ld: error: duplicate symbol: QQuickPlatformFileDialog::staticMetaObject
      >>> defined in /home/qt/RTA/Qt_6.2.1/6.2.1/wasm_32/./qml/Qt/labs/platform/libqtlabsplatformplugin.a(mocs_compilation.cpp.o)
      >>> defined in /home/qt/RTA/Qt_6.2.1/6.2.1/wasm_32/lib/libQt6QuickDialogs2QuickImpl.a(mocs_compilation.cpp.o)wasm-ld: error: duplicate symbol: QQuickPlatformFileDialog::qt_metacast(char const*)
      >>> defined in /home/qt/RTA/Qt_6.2.1/6.2.1/wasm_32/./qml/Qt/labs/platform/libqtlabsplatformplugin.a(mocs_compilation.cpp.o)
      >>> defined in /home/qt/RTA/Qt_6.2.1/6.2.1/wasm_32/lib/libQt6QuickDialogs2QuickImpl.a(mocs_compilation.cpp.o)
      

      Full log attached.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              qtbuildsystem Qt Build System Team
              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