ffmpegwasm / ffmpegwasm/ffmpeg.wasm

wasm-ld: error: initial memory too small

Ouverte
#317 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
C
Étoiles
17.8k
Forks
1.1k
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

![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?

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.