Is there any working installer / setup for Windows?
-
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 ?
-
@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 ? -
@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 ?
-
@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.
-
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.8To get Qt Creator to use emscripten for wasm, you need the correct version of Emscripten installed and then enable the experimental wasm plugin.