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.
6503 Discussions

openvino Cmake Error , Ubuntu 18.04 - The required 'gflags'

mohanad
Beginner
3,408 Views

i have an issue when start building and do cmake for sample and programs .

I'm using ubuntu 18.04 - openvino 2020 .

my cmake error saying .

The required 'gflags' library was not found in the Inference Engine's

 

below the full terminal output error :

 

mohanadkoko92@mohanadkoko92:~/tutorials/inference-tutorials-generic/face_detection_tutorial/step_1/build$ cmake ..
CMake Warning (dev) in CMakeLists.txt:
No project() command is present. The top-level CMakeLists.txt file must
contain a literal, direct call to the project() command. Add a line of
code such as

project(ProjectName)

near the top of the file, but after cmake_minimum_required().

CMake is pretending there is a "project(Project)" command on the first
line.
This warning is for project developers. Use -Wno-dev to suppress it.

-- InferenceEngine_DIR=/opt/intel/openvino_2020.4.287/deployment_tools/inference_engine/share
-- CMAKE_MODULE_PATH=/opt/intel/openvino_2020.4.287/deployment_tools/inference_engine/share/../samples/cmake
-- Looking for inference engine configuration file at: /home/mohanadkoko92/tutorials/inference-tutorials-generic/face_detection_tutorial/share
CMake Error at /home/mohanadkoko92/tutorials/inference-tutorials-generic/face_detection_tutorial/cmake/CMakeLists_common.cmake:135 (message):
The required 'gflags' library was not found in the Inference Engine's
samples at:
/opt/intel/openvino_2020.4.287/deployment_tools/inference_engine/share/../samples/thirdparty/gflags
Call Stack (most recent call first):
CMakeLists.txt:17 (include)


-- Configuring incomplete, errors occurred!
See also "/home/mohanadkoko92/tutorials/inference-tutorials-generic/face_detection_tutorial/step_1/build/CMakeFiles/CMakeOutput.log".

 

0 Kudos
2 Replies
Munesh_Intel
Moderator
3,380 Views

Hi Mohand Koko,


This seems more like an issue with CMake.  What is the version of CMake that you’re using ?

OpenVINO requires CMake 2.8 or higher for Linux build environment.

https://software.intel.com/content/www/us/en/develop/tools/openvino-toolkit/system-requirements.html


I would suggest you try the following:

·      Reinstall a higher version of CMake.

·      Download and install gflags package from https://github.com/gflags/gflags, and declare dependency on gflags with CMake.

Link: https://gflags.github.io/gflags/#cmake


Regards,

Munesh.


0 Kudos
Munesh_Intel
Moderator
3,353 Views

Hi Mohand,


This thread will no longer be monitored since we have provided recommendations. If you need any additional information from Intel, please submit a new question.


Regards,

Munesh



0 Kudos
Reply