cmake - Cmake 中的 INFERENCE_ENGINE_LIB 未设置错误
问题描述
我正在尝试使用英特尔 movidius Myriad X VPU 在我的树莓派 4 中运行 gender_age 示例( https://github.com/movidius/ncappzoo/tree/master/apps/gender_age ),但出现错误
我按照教程https://software.intel.com/en-us/articles/get-started-with-neural-compute-stick直到下一步:这里的 ncappzoo 标题是我的错误
Intel OpenVINO environment is already set!
(mkdir -p build; cd build; cmake ..; make;)
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
INFERENCE_ENGINE_LIB
linked by target "gender_age" in directory /home/pi/Documents/ncappzoo/apps/gender_age
-- Configuring incomplete, errors occurred!
See also "/home/pi/Documents/ncappzoo/apps/gender_age/build/CMakeFiles/CMakeOutput.log".
make[1] : on entre dans le répertoire « /home/pi/Documents/ncappzoo/apps/gender_age/build »
make[1]: *** Pas de cible spécifiée et aucun makefile n'a été trouvé. Arrêt.
make[1] : on quitte le répertoire « /home/pi/Documents/ncappzoo/apps/gender_age/build »
make: *** [Makefile:68: compile_cpp] Error 2
解决方案
此示例的 CMake 文件取决于 OpenVino 环境变量。假设您已经安装了 OpenVino,使用它通常需要设置OpenVino 环境变量,或者在当前命令提示符中,或者在您的系统环境变量中永久设置。正如这个cmake
答案所描述的,您可以单独设置其中的每一个,或者在继续执行命令之前运行环境变量脚本:
> C:/path/to/your/openvino/opencv/setupvars.bat
在命令提示符下运行此命令后,该命令cmake ..
应该能够访问这些环境变量(尤其是INTEL_CVSDK_DIR
)并成功生成构建系统。然后,您可以使用make
.
推荐阅读
- mongodb - 如何在 vpc 设置中使用 lambda 访问 ec2 实例中的 Mongodb?
- java - Appium:iPhone safari 执行相同脚本比 Android chrome 需要更多时间
- html - CSS背景图像/封面问题
- python - 运行时警告 - Greenlet.greenlet 大小已更改?
- xml - 如何在树视图中隐藏一行?
- javascript - ReactCssTransitionGroup,调低不透明度然后向上滑动
- ffmpeg - FFMPEG 帧提取 - 卡住
- javascript - 在可编辑 div 内的两个不可编辑跨度之间使用向右箭头移动光标
- python - 如何在 Python 中运行 PDFbookmarker
- java - 插件依赖的 Org.JSON