1.5 KiB
1.5 KiB
Build OpenVINO™ Runtime for WebAssembly
This guide shows how to build OpenVINO for WebAssembly using Emscripten SDK. Emscripten SDK can be directly downloaded and used, but it is more easier to use the emscripten/emsdk docker image.
The approach is validated on Linux, Windows and macOS operation systems.
Software Requirements
How to build
- Clone OpenVINO repository and init submodules:
git clone https://github.com/openvinotoolkit/openvino.git
cd openvino
git submodule update --init --recursive
- Run docker image and mount a volume with OpenVINO source code:
$ docker pull emscripten/emsdk
$ docker run -it --rm -v `pwd`:/openvino emscripten/emsdk bash
- (CMake configure) Run cmake configure step using helper emscripten command:
$ mkdir build && cd build
$ emcmake cmake -DCMAKE_BUILD_TYPE=Release /openvino
- (CMake build) Build OpenVINO project:
$ emmake make -j$(nproc)
openvino.wasm and openvino.js files are located in:
<openvino_source_dir>/bin/ia32/Release/on host machine file system./openvino/bin/ia32/Releasein docker environment. These files can be used in browser applications.