Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Unsolved Building Qt5.14.2 for WebAssembly shared returns error.

    Qt for WebAssembly
    wasm webassembly webengine webengine qt5
    2
    3
    367
    Loading More Posts
    • 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
      Oshio last edited by Oshio

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 0
        • O
          Oshio last edited by Oshio

          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 Reply Quote 0
          • First post
            Last post