Openvino CMake errror Ubuntu 16.04

TCE Options

TCE Level: 

TCE Open Date: 

Tuesday, July 23, 2019 - 16:47

Openvino CMake errror Ubuntu 16.04


I am trying to run samples from Inference engine error. But while doing CMake I am facing error

-- CMAKE_BUILD_TYPE not defined, 'Release' will be used
CMake Warning at common/format_reader/CMakeLists.txt:18 (message):
  OPENCV is disabled or not found, format_reader is built without OPENCV
  support

CMake Error at CMakeLists.txt:142 (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.6) 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.

-- Configuring incomplete, errors occurred!
See also "/opt/intel/openvino_2019.1.144/deployment_tools/inference_engine/samples/build/CMakeFiles/CMakeOutput.log".

6 posts / 0 new

Dear Gupta, Badal

We just released OpenVino 2019R2 yesterday, which I hope you will download and try.

It looks like you didn't run setupvars.sh . Also make sure you followed the OpenVino Linux installation steps carefully, which includes installing openvino_pre-requisites.

Thanks,

Shubha

 


I am trying to install OpenVINO on Debain 10  on Raspberry Pi B+ and ended up with the same problem. The error is CMake Warning at common/format_reader/CMakeLists.txt:18. 

This is what I tried:

pi@raspberrypi:~/Downloads $ source /opt/intel/openvino/bin/setupvars.sh
bash: /opt/intel/openvino/bin/setupvars.sh: line 17: syntax error near unexpected token `newline'
bash: /opt/intel/openvino/bin/setupvars.sh: line 17: `INSTALLDIR=<INSTALLDIR>'
pi@raspberrypi:~/Downloads $ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-march=armv7-a" /opt/intel/openvino/deployment_tools/inference_engine/samples
CMake Warning at common/format_reader/CMakeLists.txt:18 (message):
  OPENCV is disabled or not found, format_reader is built without OPENCV
  support

CMake Error at CMakeLists.txt:137 (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.6) with any of the following names:

    InferenceEngineConfig.cmake
    inferenceengine-config.cmake
 

Any idea to fix it? Thank you. 


Dear Yu, Jisoo,

As The RPI OpenVino install document says, 

You must install one of these on your Raspberry PI board:

Raspbian* Buster, 32-bit

Raspbian* Stretch, 32-bit

Debian 10 Buster would work if you use the 32-bit version.

It seems like you have a lot of errors after running setupvars.sh, starting with not being able to locate OPENCV .

Perhaps you can try re-install by carefully following the steps in the above referenced document.

OpenCV should be part of the RPI OpenVino installation - you should not have to build and install it from scratch generally, although for RPI 4 recompilation seems to be needed. Please see a recent RPI 4 IDZ post for details.

Thanks,

Shubha


pi@raspberrypi:/ $ sudo cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-march=armv7-a" /opt/intel/openvino/deployment_tools/inference_engine/samples
-- 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
-- Looking for C++ include unistd.h
-- Looking for C++ include unistd.h - found
-- Looking for C++ include stdint.h
-- Looking for C++ include stdint.h - found
-- Looking for C++ include sys/types.h
-- Looking for C++ include sys/types.h - found
-- Looking for C++ include fnmatch.h
-- Looking for C++ include fnmatch.h - found
-- Looking for C++ include stddef.h
-- Looking for C++ include stddef.h - found
-- Check size of uint32_t
-- Check size of uint32_t - done
-- Looking for strtoll
-- Looking for strtoll - found
CMake Warning at common/format_reader/CMakeLists.txt:26 (message):
  OPENCV is disabled or not found, format_reader will be built without OPENCV
  support

CMake Error at CMakeLists.txt:203 (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 2.1) 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.

-- Configuring incomplete, errors occurred!
See also "//CMakeFiles/CMakeOutput.log".
 

Thanks for your Help


Hello Lapin, G.

Please ensure you have installed latest 2020.1 build of OpenVINO Toolkit for Raspbian OS from here - https://download.01.org/opencv/2020/openvinotoolkit/ 

And then carefully follow the steps from the installation guide - http://docs.openvinotoolkit.org/latest/_docs_install_guides_installing_o...

If you still see this error, try running "source /opt/intel/openvino/bin/setupvars.sh" right before executing cmake command section.
If it still remains, please open a new topic, since this is an old one and related to obsolete version.

Best regards, Max.

Leave a Comment

Please sign in to add a comment. Not a member? Join today