Closed bart9h closed 1 year ago
After brew install emscripten, brew install raylib, cloning this repo and running PLATFORM=PLATFORM_WEB make from the src/ dir gives this output:
brew install emscripten
brew install raylib
PLATFORM=PLATFORM_WEB make
% PLATFORM=PLATFORM_WEB make /Applications/Xcode.app/Contents/Developer/usr/bin/make raylib_game emcc -c raylib_game.c -o raylib_game.o -std=c99 -Wall -Wno-missing-braces -Wunused-result -D_DEFAULT_SOURCE -Os -I. -I../../raylib/src -I../../raylib/src/external -I../../raylib/src/extras -DPLATFORM_WEB make[1]: emcc: No such file or directory make[1]: *** [raylib_game.o] Error 1 make: *** [all] Error 2
which emcc finds it at /usr/local/bin, which is on the $PATH
which emcc
The problem is on lines 130 to 137 of Makefile. I overwrites the PATH, assuming a Windows environment.
After
brew install emscripten
,brew install raylib
, cloning this repo and runningPLATFORM=PLATFORM_WEB make
from the src/ dir gives this output:which emcc
finds it at /usr/local/bin, which is on the $PATH