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. Qt 5.13.2 and recommended emscripten
QtWS25 Last Chance

Qt 5.13.2 and recommended emscripten

Scheduled Pinned Locked Moved Solved Qt for WebAssembly
3 Posts 2 Posters 623 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.
  • B Offline
    B Offline
    Boris613
    wrote on 19 Nov 2019, 01:45 last edited by
    #1

    I am trying to build Hello world on MacOS using Qt 5.13.2, binary package. I can build recommended emscripten sdk 1.38.27 from source because it is no longer available precompiled.

    I suspect that my errors are related to this,
    no symbols
    wasm-ld: error: main.o: machine type must be wasm32
    wasm-ld: error: moc_main.o: machine type must be wasm32
    wasm-ld: error: main.o: machine type must be wasm32
    wasm-ld: error: moc_main.o: machine type must be wasm32
    wasm-ld: error: moc_main.o: machine type must be wasm32
    wasm-ld: error: main.o: machine type must be wasm32

    I am getting the same errors from command line and from QtCreator, using emsdk 1.39.3

    Is it a way to determine whether it is emsdk error or another issue?

    **boris@FastMacBook:emsdk$ ./emsdk list

    The recommended precompiled SDK download is 1.39.3 (b024b71038d1291ed7ec23ecd553bf2c0c8d6da6).

    To install/activate it, use one of:
    latest [default (llvm) backend]
    latest-fastcomp [legacy (fastcomp) backend]

    Those are equivalent to installing/activating the following:
    1.39.3
    1.39.3-fastcomp

    All recent (non-legacy) installable versions are:
    1.39.3
    1.39.2
    1.39.1
    1.39.0
    1.38.48
    1.38.47
    1.38.46
    1.38.45
    1.38.44
    1.38.43
    1.38.42
    1.38.41
    1.38.40
    1.38.39
    1.38.38
    1.38.37
    1.38.36
    1.38.35
    1.38.34
    1.38.33

    The additional following precompiled SDKs are also available for download:
    sdk-1.30.0-64bit
    sdk-1.34.1-64bit
    sdk-1.35.0-64bit**

    1 Reply Last reply
    1
    • L Offline
      L Offline
      lorn.potter
      wrote on 19 Nov 2019, 07:43 last edited by
      #2

      Currently, we are still recommending emscripten 1.38.27 or 1.38.30 for threaded builds. These are what the Qt WebAssembly binaries are built with, and you will need to use the same emscripten version.

      Freelance Software Engineer, Platform Maintainer QtWebAssembly, Maintainer QtSensors
      Author, Hands-On Mobile and Embedded Development with Qt 5 http://bit.ly/HandsOnMobileEmbedded

      1 Reply Last reply
      0
      • B Offline
        B Offline
        Boris613
        wrote on 20 Nov 2019, 14:31 last edited by
        #3

        Thanks Lorn. It was easier to rebuild Qt at the end, and it solved the issue.

        1 Reply Last reply
        0

        3/3

        20 Nov 2019, 14:31

        • Login

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