-
Notifications
You must be signed in to change notification settings - Fork 2.4k
BuildingForMacOS_arm64
The software was validated on:
- macOS* 11.x, 12.x, arm64
- brew package manager to install additional dependencies
- CMake* 3.13 or higher (e.g., brew install cmake)
- Clang* compiler from Xcode* 10.1 or higher (e.g., xcode-select --install)
- Python* 3.6 or higher for the OpenVINO Runtime Python API (e.g., brew install python@3.10, or select desired version among ones found by brew search python)
- libusb library for MYRIAD (e.g., brew install pkg-config libusb)
- TBB library for Apple Silicon (e.g., brew install tbb)
- Clone submodules:
git clone https://github.com/openvinotoolkit/openvino.git cd openvino git submodule update --init
- Create a build folder:
mkdir build && cd build
- OpenVINO uses a CMake-based build system. In the created
build
directory, runcmake
to fetch project dependencies and create Unix makefiles, then runmake
to build the project:
cmake -DCMAKE_BUILD_TYPE=Release ..
make --jobs=$(nproc --all)
You can use the following additional build options:
-
Required versions of TBB and OpenCV packages are downloaded automatically by the CMake-based script. If you want to use the automatically downloaded packages but you have already installed TBB or OpenCV packages configured in your environment, you may need to clean the
TBBROOT
andOpenCV_DIR
environment variables before running thecmake
command, otherwise they won't be downloaded and the build may fail if incompatible versions were installed. -
If the CMake-based build script can not find and download the OpenCV package that is supported on your platform, or if you want to use a custom build of the OpenCV library, see how to Use Custom OpenCV Builds.
-
To build the OpenVINO Runtime Python API, you must enable the
-DENABLE_PYTHON=ON
option. To specify an exact Python version, use the following suggested options:- If you installed Python through Homebrew* (recommended), please first install the following libraries and dependencies.
python3 -m pip install -U pip cython wheel setuptools
- Then, you can enable OpenVINO Runtime Python API with the option enabled (please refer to step # 3 above).
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_PYTHON=ON \ -DPYTHON_EXECUTABLE=/usr/local/Cellar/python@3.7/3.7.11/Frameworks/Python.framework/Versions/3.7/bin/python3.7m \ -DPYTHON_LIBRARY=/usr/local/Cellar/python@3.7/3.7.11/Frameworks/Python.framework/Versions/3.7/lib/libpython3.7m.dylib \ -DPYTHON_INCLUDE_DIR=/usr/local/Cellar/python@3.7/3.7.11/Frameworks/Python.framework/Versions/3.7/include/python3.7m ..
- If you installed Python other ways, you can use the following commands to find where the
dylib
andinclude_dir
are located, respectively, and update the option parameters above accordingly:
find /usr/ -name 'libpython*m.dylib' find /usr/ -type d -name python3.7m
© 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