Could Not Find a Package Configuration File Provided by “InferenceEngine”


Error Messages



What are you seeing?

CMake error text:

$ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-march=armv7-a" /opt/intel/openvino/deployment_tools/inference_engine/samples

CMake Error at CMakeLists.txt:203 (find_package):
By not providing "FindInferenceEngine.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"InferenceEngine", but CMake did not find one.

Could not find a package configuration file provided by "InferenceEngine"
(requested version 2.0) with any of the following names:


Add the installation prefix of "InferenceEngine" to CMAKE_PREFIX_PATH or
set "InferenceEngine_DIR" to a directory containing one of the above files.
If "InferenceEngine" provides a separate development package or SDK, be
sure it has been installed.

-- Configuring incomplete, errors occurred!



Building Inference Engine Samples on Raspberry Pi*


Why are you seeing it?

This CMake error is caused when the environment variables have not been set. You must update several environment variables before you can compile and run OpenVINO™ toolkit applications.


How to fix it

Solution 1 - Using Intel® Distribution of OpenVINO™ toolkit for Raspbian* OS

The pre-built package includes a setup script to set the environment variables, to temporarily set the environment variables run the following command:

source /opt/intel/openvino/bin/

Note The environment variables will be removed when you close the terminal window.

Alternatively, you can permanently set the environment variables by running the following command:

echo "source /opt/intel/openvino/bin/" >> ~/.bashrc

Solution 2 - Using the open source version of OpenVINO™ toolkit

To use the Inference Engine built from source, export the following variables:

export ngraph_DIR=/home/pi/openvino/build/ngraph
export InferenceEngine_DIR=/home/pi/openvino/build

Note The path may differ depending on the location of your built directory.