jsmpeg icon indicating copy to clipboard operation
jsmpeg copied to clipboard

Help, error when recompiling

Open 5cheros opened this issue 4 years ago • 3 comments

emcc: error: /system/lib/emmalloc.cpp: No such file or directory ("/system/lib/emmalloc.cpp" was expected to be an input file, based on the commandline arguments provided) Who has encountered this situation, please tell me how to solve it? Thank you!

5cheros avatar May 07 '20 11:05 5cheros

The $EMSCRIPTEN env var dosen't seem to be defined on all systems. I have changed the build.sh to reflect this and added some build instructions. You may need to adjust EMSCRIPTEN_LIB in the build.sh to work on your system.

phoboslab avatar May 09 '20 18:05 phoboslab

emcc: error: /system/lib/emmalloc.cpp: No such file or directory ("/system/lib/emmalloc.cpp" was expected to be an input file, based on the commandline arguments provided) Who has encountered this situation, please tell me how to solve it? Thank you!

1.at first, remove the old emcc 2.reinstall emscripten.https://emscripten.org/docs/getting_started/downloads.html 3.# ./emsdk install 1.38.47

./emsdk activate 1.38.47

source ./emsdk_env.sh

cllee1214 avatar Jul 23 '21 02:07 cllee1214

find ./ -name emmalloc.cpp change the EMSCRIPTEN_LIB,my path here is:EMSCRIPTEN_LIB=$EMSDK/upstream/emscripten/system/lib image

commanderZY avatar Mar 03 '23 09:03 commanderZY