-
Notifications
You must be signed in to change notification settings - Fork 2.3k
BuildingForWebAssembly
Ilya Lavrenov edited this page Feb 16, 2023
·
5 revisions
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.
- (Get sources) Clone submodules:
$ git clone https://github.com/openvinotoolkit/openvino.git
$ cd openvino
$ git submodule update --init
- Run docker image and mount a volume with OpenVINO source code:
$ docker run -it --rm -v `pwd`:/openvino emscripten/emsdk
- (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 $(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.
© Copyright 2018-2024, OpenVINO team
- Home
- General resources
- How to build
-
Developer documentation
- Inference Engine architecture
- CPU plugin
- GPU plugin
- HETERO plugin architecture
- Snippets
- Sample for IE C++/C/Python API
- Proxy plugin (Concept)
- Tests