Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.

cmake error when building openvino smaples on raspberry pi 3b+

xzh__cathay
Beginner
792 Views

hi everyone,

when i use the command: cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-march=armv7-a"  ,

it results an error :

CMake Error at CMakeLists.txt:60 (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"
  (requested version 1.5) 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.

 

Does anyone know the reason?

 

0 Kudos
4 Replies
Shubha_R_Intel
Employee
792 Views
0 Kudos
Huaichun__Fu1
Beginner
792 Views

did you solve the problem?can you help me? i have the same question. Thanks

0 Kudos
Shubha_R_Intel
Employee
792 Views

Dear everyone, these errors look as if you have not run setupvars.sh . Please make sure you run it first ! Let me know if you have further issues.

Thanks,

Shubha

0 Kudos
Hasanul_K_Intel
Employee
792 Views

Hi all,

I just had the same problem on my raspberry pi 3b+ model and even after running the setupvars.sh, it was still giving me the same error. The following steps worked for me: 

1. login as root user in terminal: sudo -i

2. run the setupvars.sh again: source /opt/intel/openvino/bin/setupvars.sh

3. cd to the build directory that I created as part of the procedure and then run the cmake command again: cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-march=armv7-a" /opt/intel/openvino/deployment_tools/inference_engine/samples

The rest of the procedure went smoothly.

Hope it helps someone. 

Thanks,

Hasan

0 Kudos
Reply