ffmpegwasm / ffmpegwasm/ffmpeg.wasm

wasm-ld: error: initial memory too small

Offen
#317 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
C
Sterne
17.8k
Forks
1.1k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

![image](https://user-images.githubusercontent.com/18612047/151758879-7b8a4f71-eff7-4dfe-8e34-ea46734789c6.png)

When I was customizing the configure file, I reported an "initial memory too small" error during the build process. I tried to make changes to the "INITIAL_MEMORY" and "ALLOW_MEMORY_GROWTH" properties, but it didn't seem to work, the error still exists!

![image](https://user-images.githubusercontent.com/18612047/151758949-19391e81-97ea-4259-90aa-e79067ca9631.png)

So I made a forcible modification to emscripten's settings.js file, and it worked. Here's how
1. Copy the settings.js file and modify the default properties
![image](https://user-images.githubusercontent.com/18612047/151759520-a2989085-a39f-4709-b481-c500ef8818b4.png)

2. Move the modified setting.js file to build.sh
![image](https://user-images.githubusercontent.com/18612047/151759698-d64282ef-6708-4bda-aae6-239f08b28330.png)

Is there a final solution here?

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.