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:
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?
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.