I'm trying to compile raylib for html5, but I can't seem to run make
properly. Running make PLATFORM=PLATFORM_WEB -B
in raylib/src
returns this:
emcc -c rcore.c -Wall -D_DEFAULT_SOURCE -Wno-missing-braces -Werror=pointer-arith -fno-strict-aliasing -std=gnu99 -Os -I. -Iexternal/glfw/include -Iexternal/glfw/deps/mingw -DPLATFORM_WEB -DGRAPHICS_API_OPENGL_ES2
make: emcc: Command not found
make: *** [Makefile:558: rcore.o] Error 127
However, running emcc
works fine in the current shell (prints no input files
), sh
and bash
, and works in different terminal emulators.
$PATH
is (from zsh and alacritty, my primary shell and terminal emulator):
/home/user/emsdk:/home/user/emsdk/upstream/emscripten:/home/user/emsdk/node/14.15.5_64bit/bin:/opt/devkitpro/tools/bin:/home/user/.local/bin:/home/user/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin