运行时报错:
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.
发现三个文件分别在不同的目录下,可以采取如下措施:
- 从/opt/intel/openvino/路径分别find到这三个文件
- 自己的目录下(与CMakeList.txt同级)创建config文件夹
- 分别将刚刚找到的三个.cmake文件复制到config文件夹下
- 打开CMakeList.txt文件,在project()命令下添加一行set(CMAKE_PREFIX_PATH config)即可解决