Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Configuring Qt for WebAssembly and Emscripten



  • I am trying to configure Emscripten with Qt for WebAssembly. However, my auto-detected Emscripten Compiler is showing an error (This toolchain is invalid). I have already downloaded and installed Emscripten and sed.

    fa73c7ac-4d95-4203-9e49-6744f75781c0-image.png

    This may be because the displayed Compiler Path is set to \clang.exe for both C and C++ - is there a way to change this? What does it need to be changed to?

    8190f192-f883-4e95-b52d-072e1af5da13-image.png

    This is my WebAssembly Kit:
    e05e78e1-21a2-40ec-938b-cef2357bd800-image.png

    When I try to 'run qmake' the error returned is

    Project ERROR: Cannot run target compiler 'em++'. Output:
    ===================
    ===================
    Maybe you forgot to setup the environment?
    

    I am aware that you need to setup the environment for the terminal using emsdk_env.bat but how does it work with Qt Creator?

    All help appreciated.