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. wasm-ld: error: initial memory too small, 87418256 bytes needed

wasm-ld: error: initial memory too small, 87418256 bytes needed

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
1 Posts 1 Posters 208 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.
  • J Offline
    J Offline
    johngod
    wrote on 31 Dec 2024, 06:35 last edited by johngod
    #1

    I am using Qt 6.8.0 in MacOS M3 Sequoia , I have sucessfully compiled other web assembly projects, but this one has huge textures images, I get the following error:

    wasm-ld: error: initial memory too small, 87418256 bytes needed
    em++: error: '/Users/joao/emsdk/upstream/bin/wasm-ld @/var/folders/cb/7crk1mjj353594gh4q63jhhh0000gn/T/emscripten_81k229f2.rsp.utf-8' failed (returned 1)
    make: *** [SolarSystem3D.js] Error 1
    06:27:49: The process "/usr/bin/make" exited with code 2.
    06:27:49: Error while building/deploying project SolarSystem3D (kit: WebAssembly Qt 6.8.0 (single-threaded))
    06:27:49: When executing step "Make"
    

    I am using qmake, I have added

    QMAKE_LFLAGS += -ALLOW_MEMORY_GROWTH=true
    QMAKE_LFLAGS += -s TOTAL_MEMORY=134217728
    

    but still does not work. What is the correct way to increase the memory ?

    Edit: I got this working by reducing the images resolutions and sizes, still I would like to know how to fix this memory issue

    1 Reply Last reply
    0

    1/1

    31 Dec 2024, 06:35

    • Login

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