推荐优秀的资料cppwasm-book
- OSX or Ubuntu
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install latest
./emsdk activate latest
source ./emsdk_env.sh
- Windows10
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
.\emsdk.bat install latest
.\emsdk.bat activate latest
.\emsdk_env.bat
# 添加相应的路径和环境变量