git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
git pull
./emsdk install 3.1.51 node-18.20.3-64bit
./emsdk activate 3.1.51 node-18.20.3-64bit
source ./emsdk_env.sh
echo "$EMSDK_NODE"
"$EMSDK_NODE" -v
# Build onnxruntime for WASM in the browser
./build-wasm-simd.sh 1.17.1This project is to build custom ONNX Runtime libraries which are not provided in the official releases.
Currently supports static library builds only with the default options.
- Requirements for building ONNX Runtime for inferencing (for native build)
- Requirements for building ONNX Runtime for Web (for Wasm build)
- Bash
- On Windows, you can use Git Bash provided by Git for Windows.
Build for native:
./build-static_lib.shBuild for Wasm:
# Builds into output/wasm-static_lib/Release (non-SIMD by default)
./build-wasm-static_lib.sh
# Convenience wrappers that also package a versioned zip:
./build-wasm-nosimd.sh 1.23.2
./build-wasm-simd.sh 1.23.2