Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for WebAssembly
  4. Build Error : Qt WebAssembly for Linux (Uubuntu 18.04)

Build Error : Qt WebAssembly for Linux (Uubuntu 18.04)

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
2 Posts 1 Posters 529 Views
  • 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
    Kallappa
    wrote on last edited by Kallappa
    #1

    Hi,

    I am trying to install Qt WASM for linux system. As i followed the following link for Qt WASM setup https://wiki.qt.io/Qt_for_WebAssembly and installed emscripten using https://emscripten.org/docs/getting_started/downloads.html.

    also installed platform specific pre-requisites using https://emscripten.org/docs/getting_started/downloads.html#platform-notes-installation-instructions-sdk
    under Linux section.

    So the flow is as follows

    sudo apt-get install python2.7
    sudo apt-get install cmake
    sudo apt-get install default-jre
    
    git clone https://github.com/emscripten-core/emsdk.git
    cd emsdk
    git pull
    
    ./emsdk install sdk-fastcomp-1.38.27-64bit
    ./emsdk activate --embedded sdk-fastcomp-1.38.27-64bit
    source ./emsdk_env.sh
    

    And then Installed Qt5.14.0 (evaluation version) using

    ./qt-unified-linux-x64-3.2.3-online.run
    

    Finally after setup.
    if i build, Qt appication for WASM i am getting the following error for "make".

    shared:ERROR: '/home/kmb/Qtwasm/emsdk/fastcomp-clang/e1.38.27_64bit/binaryen/bin/asm2wasm ./Test.temp.asm.js --total-memory=67108864 --trap-mode=js -O3 --mem-init=./Test.js.mem --mem-base=1024 --wasm-only -o ./Test.wasm --mvp-features' failed (-9)
    Makefile:219: recipe for target 'Test.js' failed
    make: *** [Test.js] Error 1
    

    Kindly let me if any thing missed or any solutions.
    Thanks in Advance

    1 Reply Last reply
    0
    • K Offline
      K Offline
      Kallappa
      wrote on last edited by
      #2

      And one more problem is if one of the other basic Qt App gets compiled and build successfully and when i run it using *"emrun .html" using console i am getting application exit error as shown in image

      Screenshot from 2020-06-23 05-59-05.png

      So what is the reason for getting this.(I am using Firefox browser).

      1 Reply Last reply
      0

      • Login

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