# based on following
https://github.com/openvinotoolkit/openvino/wiki/BuildingForLinux
(new) https://github.com/openvinotoolkit/openvino/blob/master/docs/dev/build_linux.md
# create conda env and activate environment (optional but recommended, use python 3.8/3.9)
git clone https://github.com/openvinotoolkit/openvino
# checkout tag or commit according
cd openvino
# checkout the target branch
git submodule update --init --recursive
sudo ./install_build_dependencies.sh
# following is needed to build openvino runtime python api
pip install -r ./src/bindings/python/src/compatibility/openvino/requirements-dev.txt
# following was reported as warning during cmake; let;s do this
pip install -r src/bindings/python/wheel/requirements-dev.txt
mkdir build && cd $_
#note: find-libpython is a handy lib to find python shared lib in activated env
# pip install find-libpython; $(find_libpython) assumes a single path
# /data1/vchua/miniconda3/envs/build-ov-py38/include/python3.8
pip install find-libpython
find_libpython
# BUILD=Release
# BUILD=Debug
cmake -DCMAKE_BUILD_TYPE=$BUILD \
-DENABLE_INTEL_GPU=OFF \
-DPYTHON_EXECUTABLE=$(which python) \
-DPYTHON_LIBRARY=$(find_libpython) \
-DPYTHON_INCLUDE_DIR=$CONDA_PREFIX/include/$(basename $(realpath $(which python))) \
-DENABLE_WHEEL=ON \
..
make -j
# there is wheel folder in build folder, do install them for python oepnvino interface
pip install openvino/build/wheel/openvino-2....._x86_64.whl
Last active
October 23, 2023 14:08
-
-
Save vuiseng9/48c3d36e48c21b7fac614784ce1456a3 to your computer and use it in GitHub Desktop.
build-ov-rt.md
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment