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

Encountering errors on same step of NCS2 guide for multiple installations

Matthew_Beck
Novice
855 Views

Hello,

 

I proceeded with the correct solution given here: https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Perfectly-set-up-OpenVino-multiple-times-encountering-same-NCS2/m-p/1564138#M30547 and continued forward with the NCS2 instructions here: https://docs.openvino.ai/archive/2022.2/openvino_docs_install_guides_configurations_for_ncs2.html#ncs-guide-raspbianos and I am encountering errors on the same step for both installations I am working with:

OpenVino 2022.3.1:

 

terminal input

user@raspberrypi:~/build $ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-march=armv7-a" /opt/intel/openvino_2022.3.1/samples/cpp

 

terminal output:

CMake Error at CMakeLists.txt:135 (message):
  Failed to find 'gflags' library using 'nothreads_static' component


-- Configuring incomplete, errors occurred!
See also "/home/user/build/CMakeFiles/CMakeOutput.log".
See also "/home/user/build/CMakeFiles/CMakeError.log".

 

OpenVino 2022.2.0.7713:

 

terminal input:

user@raspberrypi:~/build $ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-march=armv7-a" /opt/intel/openvino_2022.2.0.7713/samples/cpp

 

terminal output:

-- The CXX compiler identification is GNU 12.2.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ - broken
CMake Error at /usr/share/cmake-3.25/Modules/CMakeTestCXXCompiler.cmake:63 (message):
  The C++ compiler

    "/usr/bin/c++"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /home/user/build/CMakeFiles/CMakeScratch/TryCompile-Pyx6be
   
    Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_718d8/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_718d8.dir/build.make CMakeFiles/cmTC_718d8.dir/build
    gmake[1]: Entering directory '/home/user/build/CMakeFiles/CMakeScratch/TryCompile-Pyx6be'
    Building CXX object CMakeFiles/cmTC_718d8.dir/testCXXCompiler.cxx.o
    /usr/bin/c++   -march=armv7-a  -o CMakeFiles/cmTC_718d8.dir/testCXXCompiler.cxx.o -c /home/user/build/CMakeFiles/CMakeScratch/TryCompile-Pyx6be/testCXXCompiler.cxx
    cc1plus: error: '-mfloat-abi=hard': selected architecture lacks an FPU
    gmake[1]: *** [CMakeFiles/cmTC_718d8.dir/build.make:78: CMakeFiles/cmTC_718d8.dir/testCXXCompiler.cxx.o] Error 1
    gmake[1]: Leaving directory '/home/user/build/CMakeFiles/CMakeScratch/TryCompile-Pyx6be'
    gmake: *** [Makefile:127: cmTC_718d8/fast] Error 2
   
   

 

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:10 (project)


-- Configuring incomplete, errors occurred!
See also "/home/user/build/CMakeFiles/CMakeOutput.log".
See also "/home/user/build/CMakeFiles/CMakeError.log". 

 

How may I proceed further with the setup? I am very very close to completion Thank you.

0 Kudos
4 Replies
Aznie_Intel
Moderator
845 Views

Hi Matthew_Beck,

 

Thanks for reaching out. Can you try to install the dependencies and see if this helps.

 

sudo apt-get update

sudo apt-get install -y git cmake scons build-essential

 

Or

 

sudo apt-get update

sudo apt-get install -y build-essential

 

 

Regards,

Aznie


Matthew_Beck
Novice
805 Views

Hello Anznie, hopefully you are having a good day.

Unfortunately, both errors were maintained:

 

OpenVino 2022.3.1:

 

terminal input

user@raspberrypi:~ $ sudo apt-get update
user@raspberrypi:~ $ sudo apt-get install -y git cmake scons build-essential
user@raspberrypi:~ $ sudo apt-get install -y build-essential
user@raspberrypi:~ $ cd build
user@raspberrypi:~/build $ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-march=armv7-a" /opt/intel/openvino_2022.3.1/samples/cpp

 

terminal output:

user@raspberrypi:~/build $ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-march=armv7-a" /opt/intel/openvino_2022.3.1/samples/cpp
CMake Error at CMakeLists.txt:135 (message):
  Failed to find 'gflags' library using 'nothreads_static' component


-- Configuring incomplete, errors occurred!
See also "/home/user/build/CMakeFiles/CMakeOutput.log".
See also "/home/user/build/CMakeFiles/CMakeError.log".
user@raspberrypi:~/build $ 

 

OpenVino 2022.2.0.7713:

 

terminal input:

user@raspberrypi:~ $ sudo apt-get update
user@raspberrypi:~ $ sudo apt-get install -y git cmake scons build-essential
user@raspberrypi:~ $ sudo apt-get install -y build-essential
user@raspberrypi:~ $ cd build
user@raspberrypi:~/build $ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-march=armv7-a" /opt/intel/openvino_2022.2.0.7713/samples/cpp

 

terminal output:

user@raspberrypi:~/build $ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-march=armv7-a" /opt/intel/openvino_2022.2.0.7713/samples/cpp
-- The CXX compiler identification is GNU 12.2.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ - broken
CMake Error at /usr/share/cmake-3.25/Modules/CMakeTestCXXCompiler.cmake:63 (message):
  The C++ compiler

    "/usr/bin/c++"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /home/user/build/CMakeFiles/CMakeScratch/TryCompile-28AdLu
   
    Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_6cc51/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_6cc51.dir/build.make CMakeFiles/cmTC_6cc51.dir/build
    gmake[1]: Entering directory '/home/user/build/CMakeFiles/CMakeScratch/TryCompile-28AdLu'
    Building CXX object CMakeFiles/cmTC_6cc51.dir/testCXXCompiler.cxx.o
    /usr/bin/c++   -march=armv7-a  -o CMakeFiles/cmTC_6cc51.dir/testCXXCompiler.cxx.o -c /home/user/build/CMakeFiles/CMakeScratch/TryCompile-28AdLu/testCXXCompiler.cxx
    cc1plus: error: '-mfloat-abi=hard': selected architecture lacks an FPU
    gmake[1]: *** [CMakeFiles/cmTC_6cc51.dir/build.make:78: CMakeFiles/cmTC_6cc51.dir/testCXXCompiler.cxx.o] Error 1
    gmake[1]: Leaving directory '/home/user/build/CMakeFiles/CMakeScratch/TryCompile-28AdLu'
    gmake: *** [Makefile:127: cmTC_6cc51/fast] Error 2
   
   

 

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:10 (project)


-- Configuring incomplete, errors occurred!
See also "/home/user/build/CMakeFiles/CMakeOutput.log".
See also "/home/user/build/CMakeFiles/CMakeError.log".
user@raspberrypi:~/build $ 

 

I am sure this issue will eventually be overcome. Thank you.

0 Kudos
Aznie_Intel
Moderator
776 Views

 

Hi Matthew_Beck,

 

On Debian/Ubuntu Linux, gflags can be installed using the following command:

sudo apt-get install libgflags-dev

 

 

Regards,

Aznie


0 Kudos
Aznie_Intel
Moderator
672 Views

Hi Matthew Beck,


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



Regards,

Aznie


0 Kudos
Reply