-
Notifications
You must be signed in to change notification settings - Fork 2.3k
BuildingForRaspbianStretchOS
NOTE: ARM CPU plugin are supported. The detailed instruction how to build ARM plugin is available in OpenVINO contrib wiki.
-
Raspberry Pi* 2 or 3 with Raspbian* Stretch OS (32 or 64-bit).
NOTE: Despite the Raspberry Pi* CPU is ARMv8, 32-bit OS detects ARMv7 CPU instruction set. The default
gcc
compiler applies ARMv6 architecture flag for compatibility with lower versions of boards. For more information, run thegcc -Q --help=target
command and refer to the description of the-march=
option.
You can compile the OpenVINO Runtime for Raspberry Pi* in one of the two ways:
- Native Compilation, which is the simplest way, but time-consuming
- Cross Compilation Using Docker*, which is the recommended way
Native compilation of the OpenVINO Runtime is the most straightforward solution. However, it might take at least one hour to complete on Raspberry Pi* 3.
- Install dependencies:
sudo apt-get update
sudo apt-get install -y git cmake scons build-essential
- Clone the repositories:
git clone --recurse-submodules --single-branch --branch=master https://github.com/openvinotoolkit/openvino.git
git clone --recurse-submodules --single-branch --branch=master https://github.com/openvinotoolkit/openvino_contrib.git
- Go to the cloned
openvino
repository:
cd openvino/
- Create a build folder:
mkdir build && cd build/
- Build the OpenVINO Runtime:
- for MYRIAD support only:
cmake -DCMAKE_BUILD_TYPE=Release \ -DOPENVINO_EXTRA_MODULES=<OPENVINO_CONTRIB_PATH>/openvino_contrib/modules/arm_plugin \ -DARM_COMPUTE_SCONS_JOBS=$(nproc --all) \ .. && cmake --build . --parallel
To cross-compile ARM CPU plugins using pre-configured Dockerfile
you can use the following instruction: Build OpenCV, OpenVINO™ and the plugin using pre-
configured Dockerfile.
- To build Python API, install
libpython3-dev:armhf
andpython3-pip
packages usingapt-get
; then installnumpy
andcython
python modules viapip3
, adding the following options:-DENABLE_PYTHON=ON \ -DPYTHON_EXECUTABLE=/usr/bin/python3.7 \ -DPYTHON_LIBRARY=/usr/lib/arm-linux-gnueabihf/libpython3.7m.so \ -DPYTHON_INCLUDE_DIR=/usr/include/python3.7
© 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