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 标题是我的错误

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
4

1 回答 1

0

此示例的 CMake 文件取决于 OpenVino 环境变量。假设您已经安装了 OpenVino,使用它通常需要设置OpenVino 环境变量,或者在当前命令提示符中,或者在您的系统环境变量中永久设置。正如这个cmake答案所描述的,您可以单独设置其中的每一个,或者在继续执行命令之前运行环境变量脚本:

> C:/path/to/your/openvino/opencv/setupvars.bat

在命令提示符下运行此命令后,该命令cmake ..应该能够访问这些环境变量(尤其是INTEL_CVSDK_DIR)并成功生成构建系统。然后,您可以使用make.

于 2019-10-14T15:40:28.323 回答