npm install
Run the following command in a terminal to set environment for work with the Inference Engine
source ${INTEL_OPENVINO_DIR}/bin/setupvars.sh
Note: To work in IDE add to $LD_LIBRARY_PATH
environment variables as in setupvars.sh
You can build the addon with node-gyp
or cmake
.
- Set
${INTEL_OPENVINO_DIR}
environment variable with path to your OpenVINO package. - Run the following command in the terminal
npm run build
- Set an environment variable
NODE_PATH
to path with NodeJS 12. Usually, this is~/.nvm/versions/node/v12*
- Run a cmake command:
mkdir cmake-build && cd cmake-build && cmake ../
- Build the addon:
cmake --build . --target InferenceEngineAddon -- -j 6
- Now you are available to use JS wrapper. To run sample execute:
npm run sample:hello-query-device