Small improvements in conan, vcpkg docs (#20272)
This commit is contained in:
parent
44f0e4f3d0
commit
30d176a687
@ -39,15 +39,15 @@
|
||||
Installing OpenVINO Runtime with Conan Package Manager
|
||||
############################################################
|
||||
|
||||
1. Install Conan 2.0.8 or higher:
|
||||
1. `Install Conan <https://docs.conan.io/2/installation.html>`__ 2.0.8 or higher, for example, using pip:
|
||||
|
||||
.. code-block:: console
|
||||
.. code-block:: sh
|
||||
|
||||
python3 -m pip install conan
|
||||
|
||||
2. Create a ``conanfile.txt`` file for your OpenVINO project and add "*openvino*" dependency in there:
|
||||
|
||||
.. code-block:: console
|
||||
.. code-block:: sh
|
||||
|
||||
[requires]
|
||||
openvino/2023.1.0
|
||||
@ -59,7 +59,7 @@ Installing OpenVINO Runtime with Conan Package Manager
|
||||
|
||||
Run the command below to create ``conan_toolchain.cmake`` file, which will be used to compile your project with OpenVINO:
|
||||
|
||||
.. code-block:: console
|
||||
.. code-block:: sh
|
||||
|
||||
conan install conanfile.txt --build=missing
|
||||
|
||||
@ -68,20 +68,20 @@ Installing OpenVINO Runtime with Conan Package Manager
|
||||
what options there are on the `Conan Package Manager page for OpenVINO <https://conan.io/center/recipes/openvino>`__
|
||||
and extend the command, like so:
|
||||
|
||||
.. code-block:: console
|
||||
.. code-block:: sh
|
||||
|
||||
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.
|
||||
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'
|
||||
|
||||
3. Configure and compile your project with OpenVINO:
|
||||
|
||||
.. code-block:: console
|
||||
.. code-block:: sh
|
||||
|
||||
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.
|
||||
OpenVINO can be used with any build interface, as long as it is supported by Conan 2.0. Read `more <https://docs.conan.io/2/examples/tools.html>`__.
|
||||
|
||||
Additional Resources
|
||||
########################
|
||||
|
@ -60,7 +60,7 @@ Installing OpenVINO Runtime
|
||||
|
||||
.. code-block:: sh
|
||||
|
||||
vcpkg install openvino:x64-windows-static
|
||||
vcpkg install 'openvino:x64-windows-static'
|
||||
|
||||
Note that the vcpkg installation means building all packages and dependencies from source,
|
||||
which means the compiler stage will require additional time to complete the process.
|
||||
@ -93,7 +93,7 @@ which means the compiler stage will require additional time to complete the proc
|
||||
|
||||
.. code-block:: sh
|
||||
|
||||
vcpkg install openvino:x64-linux-release-dynamic
|
||||
vcpkg install 'openvino:x64-linux-release-dynamic'
|
||||
|
||||
|
||||
After installation, you can use OpenVINO in your product's cmake scripts:
|
||||
|
Loading…
Reference in New Issue
Block a user