首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Cmake中的INFERENCE_ENGINE_LIB未设置错误

Cmake中的INFERENCE_ENGINE_LIB未设置错误
EN

Stack Overflow用户
提问于 2019-10-14 23:05:08
回答 1查看 186关注 0票数 0

我尝试使用英特尔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标题is my error

代码语言:javascript
复制
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
EN

回答 1

Stack Overflow用户

发布于 2019-10-14 23:40:28

本例中的CMake文件取决于OpenVino环境变量。假设您已经安装了OpenVino,使用它通常需要在当前命令提示符中或在系统环境变量中永久设置OpenVino environment variables。正如this answer所描述的,您可以分别设置它们,或者在继续执行cmake命令之前运行环境变量脚本:

代码语言:javascript
复制
> C:/path/to/your/openvino/opencv/setupvars.bat

在命令提示符中运行此命令后,命令cmake ..应该能够访问这些环境变量(特别是INTEL_CVSDK_DIR)并成功生成buildsystem。然后,您可以使用make编译该示例。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/58379477

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档