Once the project is built you can install OpenVINO™ Runtime into custom location:
```
cmake --install <BUILDDIR> --prefix <INSTALLDIR>
```
## Installation check
<details>
<summary>For versions prior to 2022.1</summary>
<p>
1. Obtaining Open Model Zoo tools and models
To have the ability to run samples and demos, you need to clone the Open Model Zoo repository and copy the folder under `./deployment_tools` to your install directory:
Open Model Zoo samples use OpenCV functionality to load images. To use it for demo builds you need to provide the path to your OpenCV custom build by setting `OpenCV_DIR` environment variable and add path OpenCV libraries to the `LD_LIBRARY_PATH (Linux)` or `PATH (Windows)` variable before running demos.
To check your installation go to the demo directory and run Classification Demo:
Linux and macOS:
```sh
cd <INSTALLDIR>/deployment_tools/demo
./demo_squeezenet_download_convert_run.sh
```
Windows:
```sh
cd <INSTALLDIR>\deployment_tools\demo
demo_squeezenet_download_convert_run.bat
```
Result:
```
Top 10 results:
Image <INSTALLDIR>/deployment_tools/demo/car.png
classid probability label
------- ----------- -----
817 0.6853030 sports car, sport car
479 0.1835197 car wheel
511 0.0917197 convertible
436 0.0200694 beach wagon, station wagon, wagon, estate car, beach waggon, station waggon, waggon
751 0.0069604 racer, race car, racing car
656 0.0044177 minivan
717 0.0024739 pickup, pickup truck
581 0.0017788 grille, radiator grille
468 0.0013083 cab, hack, taxi, taxicab
661 0.0007443 Model T
[ INFO ] Execution successful
```
</p>
</details>
<detailsopen>
<summary> For 2022.1 and after</summary>
<p>
1. Build samples
To build C++ sample applications, run the following commands:
Linux and macOS:
```sh
cd <INSTALLDIR>/samples/cpp
./build_samples.sh
```
Windows:
```sh
cd <INSTALLDIR>\samples\cpp
build_samples_msvc.bat
```
2. Install OpenVINO Development Tools
> **NOTE**: To build OpenVINO Development Tools (Model Optimizer, Post-Training Optimization Tool, Model Downloader, and Open Model Zoo tools) wheel package locally you are required to use CMake option: `-DENABLE_WHEEL=ON`.
To install OpenVINO Development Tools to work with Caffe models, execute the following commands:
mo --input_model ~/models/public/googlenet-v1/googlenet-v1.caffemodel --data_type FP16 --output_dir ~/ir
```
Windows:
```bat
mkdir %USERPROFILE%\Documents\ir
mo --input_model %USERPROFILE%\Documents\models\public\googlenet-v1\googlenet-v1.caffemodel --data_type FP16 --output_dir %USERPROFILE%\Documents\ir
```
5. Run Inference on the Sample
Set up the OpenVINO environment variables:
Linux and macOS:
```sh
source <INSTALLDIR>/setupvars.sh
```
Windows:
```bat
<INSTALLDIR>\setupvars.bat
```
The following commands run the Image Classification Code Sample using the [`dog.bmp`](https://storage.openvinotoolkit.org/data/test_data/images/224x224/dog.bmp) file as an input image, the model in IR format from the `ir` directory, and on different hardware devices: