Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.
6403 Discussions

Could not find a package configuration file provided by ngraph

Preetika
Beginner
914 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
888 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

 

 

0 Kudos
Peh_Intel
Moderator
853 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


0 Kudos
Reply