Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 1.45 KB

build_webassembly.md

File metadata and controls

44 lines (35 loc) · 1.45 KB

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

  1. Clone OpenVINO repository and init submodules:
git clone https://github.com/openvinotoolkit/openvino.git
cd openvino
git submodule update --init --recursive
  1. 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
  1. (CMake configure) Run cmake configure step using helper emscripten command:
$ mkdir build && cd build
$ emcmake cmake -DCMAKE_BUILD_TYPE=Release /openvino
  1. (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/Release in docker environment. These files can be used in browser applications.

See also