当前位置:   article > 正文

openvino运行CMake时找不到InferenceEngineConfig.cmake,TBBConfig.cmake,ngraphConfig.cmake三个文件_cmakelist openvino

cmakelist openvino

运行时报错:
CMake Error at common/utils/CMakeLists.txt:15 (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”
with any of the following names:

InferenceEngineConfig.cmake
inferenceengine-config.cmake

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.

发现三个文件分别在不同的目录下,可以采取如下措施:

  1. 从/opt/intel/openvino/路径分别find到这三个文件
  2. 自己的目录下(与CMakeList.txt同级)创建config文件夹
  3. 分别将刚刚找到的三个.cmake文件复制到config文件夹下
  4. 打开CMakeList.txt文件,在project()命令下添加一行set(CMAKE_PREFIX_PATH config)即可解决
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/839737
推荐阅读
相关标签
  

闽ICP备14008679号