From 604aed1384f95b164e6e152dada9c4602029902f Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Wed, 20 Sep 2023 12:24:40 +0400 Subject: [PATCH] Updated Windows build docs (#17631) --- docs/dev/build_windows.md | 33 +++++---------------------------- docs/dev/static_libaries.md | 2 +- 2 files changed, 6 insertions(+), 29 deletions(-) diff --git a/docs/dev/build_windows.md b/docs/dev/build_windows.md index e63d4830904..e598fdd33f0 100644 --- a/docs/dev/build_windows.md +++ b/docs/dev/build_windows.md @@ -25,29 +25,17 @@ Supported configurations: ```sh git clone https://github.com/openvinotoolkit/openvino.git cd openvino - git submodule update --init --recursive - ``` - (Extra for WoA) To build on Windows on ARM with ARM plugin: - ```sh - git clone https://github.com/openvinotoolkit/openvino_contrib.git - cd openvino_contrib - git submodule update --init --recursive + git submodule update --init ``` 2. Create build directory: ```sh mkdir build && cd build ``` -3. In the `build` directory, run `cmake` to fetch project dependencies and generate a Visual Studio solution. +3. In the `build` directory, run `cmake` to fetch project dependencies and generate a Visual Studio solution: - On Windows x86 64-bits: ```sh - cmake -G "Visual Studio 16 2019" -DCMAKE_BUILD_TYPE=Release - ``` - - On Windows on ARM for ARM64 architecture: - ```sh - cmake -G "Visual Studio 16 2019" -DOPENVINO_EXTRA_MODULES=/modules/arm_plugin -DCMAKE_BUILD_TYPE=Release + cmake -G "Visual Studio 17 2022" ``` > **HINT**: **Generating PDB Files and Debugging Your Build**
@@ -62,16 +50,8 @@ Supported configurations: ### Additional Build Options -- Internal JIT GEMM implementation is used by default. - -- Threading Building Blocks (TBB) is used by default. To build Inference Engine with OpenMP threading, set the `-DTHREADING=OMP` option. - -- 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` and `OpenCV_DIR` environment variables before running the `cmake` command; otherwise they won'tnbe 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, refer to the [Use Custom OpenCV Builds](./cmake_options_for_custom_compilation.md#Building-with-custom-OpenCV) section for details. - - To build the OpenVINO Runtime Python API: - 1. First, install all additional packages (e.g., cython and opencv) listed in the file: + 1. First, install all additional packages (e.g., cython) listed in the file: ```sh pip install -r \src\bindings\python\src\compatibility\openvino\requirements-dev.txt ``` @@ -95,15 +75,12 @@ Supported configurations: pip install build/wheel/openvino-2023.0.0-9612-cp11-cp11-win_arm64.whl ``` -- OpenVINO runtime compilation options: - `-DENABLE_OV_ONNX_FRONTEND=ON` enables the building of the ONNX importer. - ### Building OpenVINO with Ninja* Build System ```sh call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvars64.bat" cmake -G Ninja -Wno-dev -DCMAKE_BUILD_TYPE=Release .. -cmake --build . --config Release +ninja . ``` ## See also diff --git a/docs/dev/static_libaries.md b/docs/dev/static_libaries.md index e001b6f24c5..e538a37555f 100644 --- a/docs/dev/static_libaries.md +++ b/docs/dev/static_libaries.md @@ -135,7 +135,7 @@ cmake -DCMAKE_TOOLCHAIN_FILE=/cmake/toolchains/mt.runtime.w * The enabled and tested capabilities of OpenVINO Runtime in a static build: * OpenVINO common runtime - work with `ov::Model`, perform model loading on particular device - * CPU and GNA inference plugins (**GPU and MYRIAD are not enabled**) + * CPU and GNA inference plugins (**GPU is not enabled**) * MULTI, HETERO, AUTO, and BATCH inference modes * IR, ONNX, PDPD, and TF frontends to read `ov::Model` * Static build support for building static libraries only for OpenVINO Runtime libraries. All other third-party prebuilt dependencies remain in the same format: