我正在尝试运行gender_age示例(https://github.com/movidius/ncappzoo/tree/master/apps/gender_age( 在我的树莓派 4 与英特尔 Movidius Myriad X VPU 中,我有一个错误
我按照教程 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
编译示例。