2

我正在尝试将 CMake 与 Emscripten 一起使用。我按照这个官方教程,克隆了回购:

git clone https://github.com/emscripten-core/emsdk.git

我做了:

./emsdk install latest
./emsdk activate latest

总的来说,emcc似乎正在工作。现在我继续阅读本教程,它告诉我使用:

./emconfigure ./configure
./emmake make

不幸emconfigureemmake是,我的PATH. 我也无法在emsdk我之前克隆的 repo 中找到它们。我错过了什么明显的东西吗?

4

1 回答 1

2

您忘记了链接的安装说明教程中的最后一步(下面加粗):

# 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

# Activate PATH and other environment variables in the current terminal
source ./emsdk_env.sh

这应该允许emconfigureemmake在当前终端会话中被识别。

于 2020-06-24T14:20:26.627 回答