Install OpenVINO™ Runtime from Conan Package Manager#
Note
Note that the Conan Package Manager distribution:
offers C/C++ API only
does not offer support for NPU inference
is dedicated to users of all major OSes: Windows, Linux, and macOS (all x86_64 / arm64 architectures)
Installing OpenVINO Runtime with Conan Package Manager#
Install Conan 2.0.8 or higher, for example, using pip:
python3 -m pip install 'conan>=2.0.8'
Create a
conanfile.txt
file for your OpenVINO project and add “openvino” dependency in there:[requires] openvino/2024.4.0 [generators] CMakeDeps CMakeToolchain [layout] cmake_layout
Run the command below to create
conan_toolchain.cmake
file, which will be used to compile your project with OpenVINO:conan install conanfile.txt --build=missing
By default, OpenVINO is statically compiled, together with all available plugins and frontends. To build a version tailored to your needs, check what options there are on the Conan Package Manager page for OpenVINO and extend the command, like so:
conan install conanfile.txt --build=missing -o:h 'openvino/*:enable_intel_gpu=False' -o:h 'openvino/*:enable_onnx_frontend=False' -o:h 'openvino/*:shared=True'
Configure and compile your project with OpenVINO:
cmake -DCMAKE_TOOLCHAIN_FILE=<path to conan_toolchain.cmake> -DCMAKE_BUILD_TYPE=Release -S <path to CMakeLists.txt of your project> -B <build dir> cmake --build <build dir> --parallel
Note
OpenVINO can be used with any build interface, as long as it is supported by Conan 2.0. Read more.
Additional Resources#
Learn more about OpenVINO Workflow.
To prepare your models for working with OpenVINO, see Model Preparation.
Learn more about Inference with OpenVINO Runtime.
See sample applications in OpenVINO toolkit Samples Overview.
Check out the OpenVINO product home page.