Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for WebAssembly
  4. Use QHttpMultiPart impossible compile for WebAssembly(maybe bug)
Forum Updated to NodeBB v4.3 + New Features

Use QHttpMultiPart impossible compile for WebAssembly(maybe bug)

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
2 Posts 2 Posters 369 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Adl78
    wrote on 23 Feb 2021, 06:31 last edited by
    #1

    if I use QHttpMultiPart the compiler throws an error:

    In file included from ../../../Qt/5.15.2/wasm_32/include/QtNetwork/QHttpMultiPart:1:
    ../../../Qt/5.15.2/wasm_32/include/QtNetwork/qhttpmultipart.h:49:1: error: static_assert failed due to requirement 'bool(-1 == 1)' "Required feature http for file ../../../Qt/5.15.2/wasm_32/include/QtNetwork/qhttpmultipart.h not available."
    QT_REQUIRE_CONFIG(http);
    ^~~~~~~~~~~~~~~~~~~~~~~
    ../../../Qt/5.15.2/wasm_32/include/QtCore/qglobal.h:87:36: note: expanded from macro 'QT_REQUIRE_CONFIG'
    #define QT_REQUIRE_CONFIG(feature) Q_STATIC_ASSERT_X(QT_FEATURE_##feature == 1, "Required feature " #feature " for file " FILE " not available.")
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ../../../Qt/5.15.2/wasm_32/include/QtCore/qglobal.h:121:49: note: expanded from macro 'Q_STATIC_ASSERT_X'

    define Q_STATIC_ASSERT_X(Condition, Message) static_assert(bool(Condition), Message)

                                                ^             ~~~~~~~~~~~~~~~
    

    1 error generated.

    I using QT version 5.15.2. And found in bugreport this error in past - https://bugreports.qt.io/browse/QTBUG-81501 and this bug fixed.
    Why am I getting this error?

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lorn.potter
      wrote on 24 Feb 2021, 19:41 last edited by
      #2

      Because the change that adds multipart support for wasm, 6b171dc6c0c0f0a822b212df77b58b28bd92716c, is not in 5.15.x, but will be part of Qt 6 webassembly.

      That said, that patch would probably apply fairly cleanly to 5.15 if you want to to recompile Qt.

      Freelance Software Engineer, Platform Maintainer QtWebAssembly, Maintainer QtSensors
      Author, Hands-On Mobile and Embedded Development with Qt 5 http://bit.ly/HandsOnMobileEmbedded

      1 Reply Last reply
      1

      1/2

      23 Feb 2021, 06:31

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved