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. Qt for WebAssembly binaries for Mac OS
QtWS25 Last Chance

Qt for WebAssembly binaries for Mac OS

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
4 Posts 4 Posters 838 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.
  • J Offline
    J Offline
    Javier Blasco
    wrote on 11 Dec 2019, 12:02 last edited by
    #1

    Hi,

    I have followed the instructions for installing Qt for WASM in Mac OS but I am unable to make it work. I have also tried in Linux but failed also.

    I have heard there are Qt for WASM binaries but I cannot find them.
    Please could you provide me with a URL to download them?

    Thank you very much in advance for your help,

    Javier

    Re: Qt for WebAssembly

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 11 Dec 2019, 15:00 last edited by
      #2

      Hi and welcome to devnet,

      The online installer provides them or you can also get them using the MaintenanceTool application.

      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
      • B Offline
        B Offline
        Boris613
        wrote on 11 Dec 2019, 21:19 last edited by
        #3

        I found it is easier to recompile Qt for WASM on MacOS. Qt requires specific version of emsdk to be installed, like 1.39.30 for multithreaded support. MacOS supplies older Python with older OpenSSL, so you'll have to do something anyway, I decided to rebuild Qt from source.

        I recall that I had to follow steps rather carefully - install emsdk, activate emsdk, source emsdk_env.sh, and then use proper qmake.

        I tried to use Qt Creator, starting from v4.11, but have not had much success. Command line however works well for me.

        I had no issues at all with Qt for WASM binaries on Linux, as long as steps related to emsdk were followed - install/activate/source. Still in terminal.

        1 Reply Last reply
        0
        • L Offline
          L Offline
          lorn.potter
          wrote on 29 Dec 2019, 19:09 last edited by lorn.potter
          #4

          You need to explicitly enable the webassembly plugin.
          From the menu: QtCreator->About plugins->Device Support->WebAssembly (experimental)

          Depending on your version of emscripten that you installed, it may or may not successfully detect the emscripten compiler.

          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
          2

          • Login

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