找不到 emmake 和 emconfigure 命令 (osx)
emmake and emconfigure command not found (osx)
我正在尝试将 CMake 与 Emscripten 结合使用。我关注 this official tutorial,使用以下代码克隆了回购协议:
git clone https://github.com/emscripten-core/emsdk.git
我做到了:
./emsdk install latest
./emsdk activate latest
总的来说,emcc
似乎有效。现在我转到 this tutorial,它告诉我使用:
./emconfigure ./configure
./emmake make
不幸的是,我的 PATH
上似乎没有 emconfigure
或 emmake
。我也无法在我之前克隆的 emsdk
存储库中找到它们。我是不是漏掉了什么明显的东西?
您忘记了您链接的 Installation Instructions 教程中的最后一步(在下面以粗体显示):
# Fetch the latest version of the emsdk (not needed the first time you clone)
git pull
# Download and install the latest SDK tools.
./emsdk install latest
# Make the "latest" SDK "active" for the current user. (writes .emscripten file)
./emsdk activate latest
<b># Activate PATH and other environment variables in the current terminal
source ./emsdk_env.sh</b>
</pre>
这应该允许 emconfigure
和 emmake
在当前终端会话中被识别。
我正在尝试将 CMake 与 Emscripten 结合使用。我关注 this official tutorial,使用以下代码克隆了回购协议:
git clone https://github.com/emscripten-core/emsdk.git
我做到了:
./emsdk install latest
./emsdk activate latest
总的来说,emcc
似乎有效。现在我转到 this tutorial,它告诉我使用:
./emconfigure ./configure
./emmake make
不幸的是,我的 PATH
上似乎没有 emconfigure
或 emmake
。我也无法在我之前克隆的 emsdk
存储库中找到它们。我是不是漏掉了什么明显的东西?
您忘记了您链接的 Installation Instructions 教程中的最后一步(在下面以粗体显示):
# Fetch the latest version of the emsdk (not needed the first time you clone) git pull # Download and install the latest SDK tools. ./emsdk install latest # Make the "latest" SDK "active" for the current user. (writes .emscripten file) ./emsdk activate latest <b># Activate PATH and other environment variables in the current terminal source ./emsdk_env.sh</b> </pre>
这应该允许
emconfigure
和emmake
在当前终端会话中被识别。