Open 5cheros opened 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.
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
find ./ -name emmalloc.cpp
change the EMSCRIPTEN_LIB,my path here is:EMSCRIPTEN_LIB=$EMSDK/upstream/emscripten/system/lib
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!