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

QtQuick3D fails to compile targeting WebAssembly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.2.0 Alpha
    • 6.2
    • Quick: 3D
    • None
    • WebAssembly
    • Ia00a09d29f75b3c0a1345cda6fc0412141e8c958 62eea9f7487ebee06039f54e1cc6864671d76c76 (qt/tqtc-qtquick3d/dev) a7986906cc961e07f2ec74c7b9167c30707a43c6 (qt/tqtc-qtquick3d/dev)

    Description

      Integration https://testresults.qt.io/coin/integration/qt/qt5/tasks/web_qt_qt5_1618388684106

      Change adding WebAssembly https://codereview.qt-project.org/c/qt/qt5/+/336695

      Compilation error

      FAILED: src/assetutils/CMakeFiles/Quick3DAssetUtils.dir/qssgqmlutilities.cpp.o 
      
      ../../src/assetutils/qssgqmlutilities.cpp:464:66: error: template argument for template type parameter must be a type
      const char *qmlElementName() { Q_STATIC_ASSERT_X((std::is_same_v), "Unknown type"); return nullptr; }
                                                                       ^
      /home/qt/work/install/target/include/QtCore/qglobal.h:115:68: note: expanded from macro 'Q_STATIC_ASSERT_X'
      #  define Q_STATIC_ASSERT_X(Condition, Message) static_assert(bool(Condition), Message)
                                                                         ^~~~~~~~~
      /opt/emsdk/emscripten-2.0.14/cache/sysroot/include/c++/v1/type_traits:551:17: note: template parameter is declared here
      template 
      
      

      Code https://github.com/qt/qtquick3d/blob/dev/src/assetutils/qssgqmlutilities.cpp#L464

      Attachments

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

        Activity

          People

            stromme Christian
            alexandru.croitor Alexandru Croitor
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes