phoboslab / jsmpeg

MPEG1 Video Decoder in JavaScript
MIT License
6.31k stars 1.43k forks source link

Help, error when recompiling #343

Open 5cheros opened 4 years ago

5cheros commented 4 years ago

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!

phoboslab commented 4 years ago

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.

cllee1214 commented 2 years ago

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

commanderZY commented 1 year ago

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