Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Error while installing Qt 5.12.0 version for Webassembly for linux Fedora as Virtual Machine.
Forum Updated to NodeBB v4.3 + New Features

Error while installing Qt 5.12.0 version for Webassembly for linux Fedora as Virtual Machine.

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 864 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kumar123456
    wrote on 22 Jan 2019, 14:06 last edited by kumar123456
    #1

    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/qtbase

    Running 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 1

    Please help to resolve this.

    1 Reply Last reply
    0
    • P Offline
      P Offline
      pwilly
      wrote on 24 Jan 2019, 13:20 last edited by pwilly
      #2

      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 Reply Last reply
      0

      1/2

      22 Jan 2019, 14:06

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved