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. webassembly build fails
Qt 6.11 is out! See what's new in the release blog

webassembly build fails

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
3 Posts 3 Posters 1.7k 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.
  • amphiA Offline
    amphiA Offline
    amphi
    wrote on last edited by
    #1

    ubuntu 20.04
    Qt 5.15.0
    emscripten 1.39.8
    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?

    K F 2 Replies Last reply
    0
    • amphiA amphi

      ubuntu 20.04
      Qt 5.15.0
      emscripten 1.39.8
      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?

      K Offline
      K Offline
      kirill_f
      wrote on last edited by
      #2

      @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 )

      1 Reply Last reply
      0
      • amphiA amphi

        ubuntu 20.04
        Qt 5.15.0
        emscripten 1.39.8
        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?

        F Offline
        F Offline
        FabienGk
        wrote on last edited by
        #3

        @amphi Hello,

        I know it is quite old, but I have the same issue.
        Did you solve it eventually?

        Thank you

        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