Details
-
Task
-
Resolution: Cannot Reproduce
-
P2: Important
-
None
-
6.8.0
-
None
Description
Trying to create a WebAssembly project in Qt Creator is far from simple, and in the end it fails with something about freetype (according to this bug report):
error: undefined symbol: saveSetjmp (referenced by root reference (e.g. compiled C/C++ code)) warning: To disable errors for undefined symbols use `-sERROR_ON_UNDEFINED_SYMBOLS=0` warning: _saveSetjmp may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library error: undefined symbol: testSetjmp (referenced by root reference (e.g. compiled C/C++ code)) warning: _testSetjmp may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library Error: Aborting compilation due to previous errors em++: error: '/usr/lib/emsdk/node/20.18.0_64bit/bin/node /usr/lib/emsdk/upstream/emscripten/src/compiler.mjs /tmp/tmposkekwvb.json' failed (returned 1) ninja: build stopped: subcommand failed.
I had to jump through logs to find it, because the Qt Creator itself only displays a message from ninja that the qmlls subcommand failed:
I won't list the whole specs of the project because it was literally just generated from a template.
Arch Linux,
Qt Installer, manually installed Emscripten Kit,
Installed emSDK from AUR (because somehow emscripten from official Arch Linux repos was not good enough for Qt CMake).