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. How to set up the Qt for WebAssembly compiler ?
QtWS25 Last Chance

How to set up the Qt for WebAssembly compiler ?

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
3 Posts 3 Posters 1.1k 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.
  • A Offline
    A Offline
    Anton1978
    wrote on 26 Dec 2020, 16:55 last edited by
    #1

    How to set up the Qt for WebAssembly compiler ?
    I'm sorry, I'm using Google Translate.

    I installed configured emscripten according to this instruction https://doc.qt.io/qt-5/wasm.html

    What's next? In the configurations, I don't have the Emscripten compiler. Tried setting it up myself, added a compiler,
    Specified the path to the C compiler - /home/anton/emsdk/node/12.18.1_64bit/bin/node
    For C++ - /home/anton/emsdk/upstream/emscripten/em++

    I created an empty project with an empty window (I did not edit the code), tried to compile and got various errors.
    I suspect that the path to the compiler is incorrect, where are the WebAssembly compiler files located?

    T 1 Reply Last reply 16 Jan 2021, 12:17
    0
    • S Offline
      S Offline
      Saman_Pasha
      wrote on 16 Jan 2021, 09:02 last edited by
      #2

      For C compiler should use /home/anton/emsdk/upstream/emscripten/emcc
      For both C and C++ ABI should use asmjs - unknown - unknown - emscripten - 32bit

      1 Reply Last reply
      0
      • A Anton1978
        26 Dec 2020, 16:55

        How to set up the Qt for WebAssembly compiler ?
        I'm sorry, I'm using Google Translate.

        I installed configured emscripten according to this instruction https://doc.qt.io/qt-5/wasm.html

        What's next? In the configurations, I don't have the Emscripten compiler. Tried setting it up myself, added a compiler,
        Specified the path to the C compiler - /home/anton/emsdk/node/12.18.1_64bit/bin/node
        For C++ - /home/anton/emsdk/upstream/emscripten/em++

        I created an empty project with an empty window (I did not edit the code), tried to compile and got various errors.
        I suspect that the path to the compiler is incorrect, where are the WebAssembly compiler files located?

        T Offline
        T Offline
        terma.aba
        wrote on 16 Jan 2021, 12:17 last edited by
        #3

        @Anton1978 I wonder if your question actually: 'how to set up WASM compiler in Qt Creator' ?

        I simply couldn't get this to work (5.15.2). A co-worker had the same trouble independently, so I don't think it was just me. I gave up and worked with only qmake, make. This worked.

        1 Reply Last reply
        0

        • Login

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