Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-97457

Highlighted example quick3d/morphing not compiling on Wasm, "wasm-ld: error: initial memory too small, 17835968 bytes needed"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 6.3.0 Alpha
    • 6.2.1
    • Build System: CMake
    • Ubuntu20.04 x64
      emsdk version: 2.0.16
      cmake version 3.21.1
    • WebAssembly
    • 2148e1f0e6026ad7a87c7eec0362d1250c1f09e9 (qt/qtbase/dev) b73252c68e48e5d24c6c3b546c99a7e3f91078e5 (qt/qtbase/6.2)

    Description

      Install Qt6.2.1 snapshot Wasm binaries (on linux), compile example quick3d/morphing (highlighted example)

      Configure passes:

      /home/johanna/RTA/Qt/6.2.0/wasm_32/bin/qt-cmake -S /home/johanna/RTA/Qt/Examples/Qt-6.2.0/quick3d/morphing -B /home/johanna/RTA/Qt/Examples/Qt-6.2.0/quick3d/morphing/bld_wasm_32

      But build fails:

      [ 12%] Built target morphing_tooling
      [ 16%] Automatic MOC and UIC for target morphing
      [ 20%] Built target morphing_autogen
      [ 25%] Running AUTOMOC file extraction for target morphing
      [ 25%] Built target morphing_automoc_json_extraction
      Consolidate compiler generated dependencies of target morphing
      [ 29%] Linking CXX executable morphing.js
      wasm-ld: error: initial memory too small, 17835968 bytes needed
      em++: error: '/home/johanna/git/emsdk/upstream/bin/wasm-ld @/tmp/emscripten_3ut6k_ef.rsp' failed (1)
      make[2]: *** [CMakeFiles/morphing.dir/build.make:498: morphing.js] Error 1
      make[1]: *** [CMakeFiles/Makefile2:172: CMakeFiles/morphing.dir/all] Error 2
      make: *** [Makefile:136: all] Error 2
      

      quick3d/custominstancing is compiling without errors.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lpotter Lorn Potter
            joaijala Johanna Äijälä
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes