Error while installing Qt 5.12.0 version for Webassembly for linux Fedora as Virtual Machine.
-
wrote on 22 Jan 2019, 14:06 last edited by kumar123456
I downloaded and installed latest Qt 5.12.0 version and successfully installed emerscripten compiler.(1.38.21)
I am getting this below error when using below command.
[osboxes@localhost Src]$ ./configure -xplatform wasm-emscripten -nomake examples -prefix $PWD/qtbaseRunning configuration tests...Checking for valid makespec... Note: Also available for Linux: linux-clang linux-icc
ERROR: Cannot compile a minimal program. The toolchain or QMakeSpec is broken.Error shown in /home/osboxes/Qt/5.12.0/Src/config.log
em++ -s WASM=1 -s FULL_ES2=1 -s ALLOW_MEMORY_GROWTH=1 -s USE_WEBGL2=1 -s NO_EXIT_RUNTIME=0 -s ERROR_ON_UNDEFINED_SYMBOLS=1 --bind -s "BINARYEN_METHOD='native-wasm'" -s "BINARYEN_TRAP_MODE='clamp'" -O3 -o ./verifyspec.js verifyspec.o
shared:ERROR: Assigning a non-existent settings attribute "BINARYEN_METHOD"
shared:ERROR: - did you mean one of BINARYEN_TRAP_MODE, BINARYEN_ROOT, BINARYEN_PASSES?
shared:ERROR: - perhaps a typo in emcc's -s X=Y notation?
shared:ERROR: - (see src/singsett.js for valid values)
gmake: *** [Makefile:67: verifyspec.js] Error 1Please help to resolve this.
-
wrote on 24 Jan 2019, 13:20 last edited by pwilly
I had the same problem and just found what the problem was.
The attribute "BINARYEN_METHOD" does not exist anymore in Emscripten toolchain. It has been removed from
<path_to_installed_emsdk_dir>/emscripten/<version>/src/settings.js
It is unfortunately still used as a flag of EMCC_COMMON_LFLAGS in
<path_to_Qt_Src_dir>/qtbase/mkspecs/wasm-emscripten/qmake.conf
Just remove it (ie. the attribute), and the problem is solved.
EDIT:
In the ChangeLog of Emscripten v1.38.23 stated as follows.Remove BINARYEN_METHOD: no more support for interpret modes, and if you want non-wasm, use WASM=0.
1/2