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. Building Qt5.14.2 for WebAssembly shared returns error.
QtWS25 Last Chance

Building Qt5.14.2 for WebAssembly shared returns error.

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
wasmwebassemblywebenginewebengine qt5
3 Posts 2 Posters 807 Views
  • 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.
  • O Offline
    O Offline
    Oshio
    wrote on 7 Sept 2020, 08:15 last edited by Oshio 9 Jul 2020, 08:17
    #1

    When I tried to configure the wasm build with the shared flag.

    Full command:

    ../qt5/configure -opensource -release -shared -confirm-license -xplatform wasm-emscripten -feature-thread -nomake examples -no-dbus -no-ssl -prefix $PWD/../qt5_wasm_binaries
    

    The output gave this error:

    ERROR: Feature 'shared' was enabled, but the pre-condition '!config.integrity && !config.wasm && !config.rtems' failed.
    

    Q: Why do you have the necessity to build wasm as shared and not static?

    A: I'm trying to use a 3rd party library (MITK), which requires qtwebengine module, more specific WebEngineWidgets. QtWebEngine's wiki clearly states that it can't be build statically.

    Right now, my only alternative seems to be finding a way to build wasm as shared. There is any way?

    I'm only asking because I couldn't find a definitive statement like: "Qt for WebAssembly can't be built as shared!".

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 7 Sept 2020, 18:24 last edited by
      #2

      Hi,

      Static is mentioned in the limitation on the Qt for webassembly introduction page.

      As for QtWebEngine, unless chromium can be built for webassembly, it's not going to be feasible.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • O Offline
        O Offline
        Oshio
        wrote on 7 Sept 2020, 21:41 last edited by Oshio 9 Jul 2020, 21:43
        #3

        Hi @SGaist ,
        One thing that made me skeptical about the info on the introduction page, was the affirmative that webassembly doesn't support threads, which is not an absolute true, in fact is relatively simple to enable thread support with the correct emscripten version.
        But everything so far is telling me that is not possible, or at least it will be very hard to compile wasm as shared.

        1 Reply Last reply
        0

        2/3

        7 Sept 2020, 18:24

        • Login

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