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:
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
The env variable ngraph_DIR is set to /opt/intel/openvino/deployment_tools/ngraph/cmake/
and this path also contains these files:
Any idea why am I still seeing this error? Thank you for the help.
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.
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.