Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
webassembly build fails
amphi last edited by
I followed the instructions here: https://doc.qt.io/qt-5/wasm.html to install and activate emscripten 1.39.8 and installed Qt 5.15.0 open source from the Qt downloads page.
I created a qt quick project but could not select the webassembly kit (grayed out)
Under Manage kits (webassembly) I could see that the compilers were empty (<No compiler>)
I tried to add them manually: I added emsdk/upstream/bin/clang++ for the c++ compiler and emsdk/upstream/bin/clang for the C compiler.
back on the kits page I was now able to add the webassembly C++ compiler, but not the C compiler.
I tried to build anyway and get this error::-1: error:
Qt/5.15.0/wasm_32/plugins/platforms/libqwasm.a: error adding symbols: file format not recognized
Can anybody point me in the right direction for fixing this?
kirill_f last edited by
@amphi u can try to put emscripten configuration file in home directory (~.emscripten) and Qt creator should be able to find emscripten automatically. But I did it on Win10, might be the same issue for ubuntu (https://forum.qt.io/topic/117580/build-simple-qml-on-webassembly )