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

运行时报错:
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)即可解决
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值