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. Is there any working installer / setup for Windows?
Forum Update on Monday, May 27th 2025

Is there any working installer / setup for Windows?

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
6 Posts 3 Posters 782 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.
  • M Offline
    M Offline
    Mdmr
    wrote on last edited by
    #1

    I downloaded with the Qt Installer the Binaries, with webasssembly, for Windows (5.151).

    There is no way to add an environment for Webassembly in Visual Studio tools for qt.
    Qt Creator ist not able to compile anything for webassembly, tested with MSVC and the ugly MinGw.

    I already did the first tests with rust, works out of the box. An direct test with emsdk works also fine in c++( console out , no qt).

    Everythings with wasm and Qt looks like try and error, no installing example is working.

    Is there anywhere an working version ?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Qt for WASM does not use MinGW nor Visual Studio. It uses emscripten.

      You have more information here.

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

      M 1 Reply Last reply
      2
      • SGaistS SGaist

        Hi and welcome to devnet,

        Qt for WASM does not use MinGW nor Visual Studio. It uses emscripten.

        You have more information here.

        M Offline
        M Offline
        Mdmr
        wrote on last edited by
        #3

        @SGaist said in Is there any working installer / setup for Windows?:

        Hi and welcome to devnet,

        Qt for WASM does not use MinGW nor Visual Studio. It uses emscripten.

        You have more information here.

        Emscripten can handle c++ source code without an compiler ?
        The target kit webassembly is not required, so it make sense that this is not compiling ?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Mdmr said in Is there any working installer / setup for Windows?:

          Emscripten can handle c++ source code without an compiler ?

          Did you read what emscripten actually is ?

          @Mdmr said in Is there any working installer / setup for Windows?:

          The target kit webassembly is not required, so it make sense that this is not compiling ?

          What do you mean by that ?

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

          M 1 Reply Last reply
          1
          • SGaistS SGaist

            @Mdmr said in Is there any working installer / setup for Windows?:

            Emscripten can handle c++ source code without an compiler ?

            Did you read what emscripten actually is ?

            @Mdmr said in Is there any working installer / setup for Windows?:

            The target kit webassembly is not required, so it make sense that this is not compiling ?

            What do you mean by that ?

            M Offline
            M Offline
            Mdmr
            wrote on last edited by
            #5

            @SGaist said in Is there any working installer / setup for Windows?:

            @Mdmr said in Is there any working installer / setup for Windows?:

            The target kit webassembly is not required, so it make sense that this is not compiling ?

            What do you mean by that ?

            It means that no tutorial for an buildenvironment for qt and emscripten works.

            According to Google Search, I'm not the only one with the problems, there don't seem to be any solutions.

            All of this doesn't seem to be mature with Qt and Wasm.

            After various construction sites and hours of Google search, Qt Creator can't be moved to build anything with emscripten.

            I wanted to "play" a little with Qt for Wasm for evaluation purposes. But such environments are completely unsuitable for a project. Even if you somehow get something to work, this cannot be reproduced on several developer computers. We can't work with that.

            Thank you very much.

            1 Reply Last reply
            0
            • lorn.potterL Offline
              lorn.potterL Offline
              lorn.potter
              wrote on last edited by lorn.potter
              #6

              on Windows, Emscripten uses MinGW as the backend. Emscripten is just python scripts that call system compilers. It uses clang to output wasm binaries.
              Qt 5.15.x requires Emscripten 1.39.8

              To get Qt Creator to use emscripten for wasm, you need the correct version of Emscripten installed and then enable the experimental wasm plugin.

              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