Important: Please read the Qt Code of Conduct -

Problems building Qt5 for WebAssembly

  • I'm trying to build Qt 5, pulled from the GitHub repository dev branch, for WebAssembly with thread support but having problems. I configured with this command:

    configure -no-warnings-are-errors -xplatform wasm-emscripten -platform win32-g++ -nomake examples -prefix C:/qt5/qtbase -device-model WASM_OBJECT_FILES=1 -feature-thread

    Note: I don't remember the correct option for specifying the setting for building Wasm object files, but I did get the correct wording when configuring which I know because I didn't get errors on it.

    I don't have the full output from running mingw-32-make since it's really long and most of the stuff from the beginning was cut off, but I'll show what I do have: .

    How do I fix the problem of it not being able to fin that stuff it says it can't find? Thanks in advance.

  • Moderators

    You can use the prebuilt Qt for WebAssembly from the official Qt installer.

    Anyway, since your compilation fails on Qt3D, try skipping that module.

Log in to reply