Intel® Distribution of OpenVINO™ Toolkit
Community support and discussions about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all things computer vision-related on Intel® platforms.
6023 Discussions

Could not find a package configuration file provided by ngraph

Preetika
Beginner
310 Views

I am using openvino/ubuntu20_runtime:2021.4 image and trying to build a cpp application inside the docker container. However, I see the below error (screenshot attached).

Could not find a package configuration file provided by "ngraph" with any
of the following names:

ngraphConfig.cmake
ngraph-config.cmake

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

 

The env variable ngraph_DIR is set to /opt/intel/openvino/deployment_tools/ngraph/cmake/
and this path also contains these files:
ngraphConfig.cmake

ngraphConfigVersion.cmake

ngraphTargets-release.cmake

ngraphTargets.cmake

 

Any idea why am I still seeing this error? Thank you for the help.

0 Kudos
2 Replies
Peh_Intel
Moderator
284 Views

Hi Preetika,

 

Thanks for reaching out to us.

 

As I know, when we source the setupvars.sh, the environment variable ngraph_DIR is set and this setupvars.sh is source once the docker image is ran.

 

You may try to add ngraph_DIR to that directory in the CMakeLists.txt file. You may refer to this article.

 

Since the openvino runtime package does not include any demo and samples, hence I download Open Model Zoo demo applications from the GitHub repository and able to build the C++ demos.

 

git clone https://github.com/openvinotoolkit/open_model_zoo.git

cd open_model_zoo/demos

./build_demos.sh

build_demo.JPG  

 

Regards,

Peh

 

 

Peh_Intel
Moderator
249 Views

Hi Preetika,


This thread will no longer be monitored since we have provided suggestion. If you need any additional information from Intel, please submit a new question. 



Regards,

Peh


Reply