Hi, dear emscripten guys!
I wanted to post my observations when installing emscripten on macOS Catalina, for which the explanations in the documentation are not correct (this very likely also concerns other macOS versions (and maybe even Linux?)). This might have to do with a version change that is not yet reflected in the docu (but since I am new to emscripten, I can't say).
Not sure if this is at all useful to you guys – if not, please close this issue. Thank you!
Reminder: With Catalina, zsh is the standard shell (not bash anymore).
My observation relate to mainly this page:
https://emscripten.org/docs/building_from_source/verify_emscripten_environment.html
To check emscripten installation, simply use
emcc --check
(not ./emcc --check)
To run a test, navigate to
cd upstream/emscripten/tests/
(not cd emscripten/<version of emscripten you installed>)
and run
emcc hello_world.cpp
(not ./emcc tests/hello_world.cpp)
Important: While it is essential to remove ./ when using emcc, it is not essential with other commands (like emsdk, which works both ways).
UPDATE
A follow-up question regarding zsh and environment variables:
Does emscripten actually support zsh? The reason I ask is that, as soon as I add source ...emsdk/emsdk_env.sh"' >> $HOME/.zshrc (NOT bash-profile), i keep getting this message:
Setting environment variables: PATH=[...]
The message stems from emsdk.py (line 2727), which checks all kinds of shells, but not for zsh, and fires this message in the context of an error log. This is strange, because I actually did set the env vars and the folders via dot-files like this:
# emscripten.config (included in .zshrc via `source emscripten.config`)
# append to path the ZSH way
path+=/Volumes/_III_/Z_WWW/emsdk
path+=/Volumes/_III_/Z_WWW/emsdk/upstream/emscripten
path+=/Volumes/_III_/Z_WWW/emsdk/node/14.15.5_64bit/bin
export EMSDK=/Volumes/_III_/Z_WWW/emsdk
export EM_CONFIG=/Volumes/_III_/Z_WWW/emsdk/.emscripten
export EMSDK_NODE=/Volumes/_III_/Z_WWW/emsdk/node/14.15.5_64bit/bin/node
export EMSDK_PYTHON=/Volumes/_III_/Z_WWW/emsdk/python/3.9.2-1_64bit/bin/python3
source /Volumes/_III_/Z_WWW/emsdk/emsdk_env.sh
Why do I get an error?
Hi, dear emscripten guys!
I wanted to post my observations when installing emscripten on macOS Catalina, for which the explanations in the documentation are not correct (this very likely also concerns other macOS versions (and maybe even Linux?)). This might have to do with a version change that is not yet reflected in the docu (but since I am new to emscripten, I can't say).
Not sure if this is at all useful to you guys – if not, please close this issue. Thank you!
Reminder: With Catalina, zsh is the standard shell (not bash anymore).
My observation relate to mainly this page:
https://emscripten.org/docs/building_from_source/verify_emscripten_environment.html
To check emscripten installation, simply use
emcc --check(not
./emcc --check)To run a test, navigate to
cd upstream/emscripten/tests/(not
cd emscripten/<version of emscripten you installed>)and run
emcc hello_world.cpp(not
./emcc tests/hello_world.cpp)Important: While it is essential to remove
./when usingemcc, it is not essential with other commands (likeemsdk, which works both ways).UPDATE
A follow-up question regarding zsh and environment variables:
Does emscripten actually support zsh? The reason I ask is that, as soon as I add
source ...emsdk/emsdk_env.sh"' >> $HOME/.zshrc(NOT bash-profile), i keep getting this message:Setting environment variables: PATH=[...]The message stems from emsdk.py (line 2727), which checks all kinds of shells, but not for zsh, and fires this message in the context of an error log. This is strange, because I actually did set the env vars and the folders via dot-files like this:
Why do I get an error?