Intel® Distribution of OpenVINO™ Toolkit
Community support and discussions about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all things computer vision-related on Intel® platforms.
5841 Discussions

OpennVino and Intel Realsense collaboration work Ubuntu 18.04.

Alexiif
Beginner
365 Views

can't compile Intel Realsense with oppenvino support. All version contain some errors.

I got this errors  on openvino 2019.3.334 and realsense 2.37.

[ 50%] Building CXX object wrappers/openvino/face/CMakeFiles/rs-face-vino.dir/rs-face-vino.cpp.o
In file included from /opt/intel/openvino/inference_engine/include/ie_plugin_ptr.hpp:11:0,
                 from /opt/intel/openvino/inference_engine/include/ie_plugin_dispatcher.hpp:11,
                 from /opt/intel/openvino/inference_engine/include/inference_engine.hpp:21,
                 from /home/navigator/IntelEdge/librealsense-2.37.0/wrappers/openvino/./rs-vino/openvino-helpers.h:15,
                 from /home/navigator/IntelEdge/librealsense-2.37.0/wrappers/openvino/./rs-vino/base-detection.h:7,
                 from /home/navigator/IntelEdge/librealsense-2.37.0/wrappers/openvino/./rs-vino/object-detection.h:6,
                 from /home/navigator/IntelEdge/librealsense-2.37.0/wrappers/openvino/face/rs-face-vino.cpp:8:
/opt/intel/openvino/inference_engine/include/details/ie_so_pointer.hpp: In instantiation of ‘InferenceEngine::details::SOPointer<T, Loader>::SOPointer(const file_name_t&) [with T = InferenceEngine::IExtension; Loader = InferenceEngine::details::SharedObjectLoader; file_name_t = std::__cxx11::basic_string<wchar_t>]’:
/opt/intel/openvino/inference_engine/include/ie_extension.h:56:26:   required from here
/opt/intel/openvino/inference_engine/include/details/ie_so_pointer.hpp:90:22: error: no matching function for call to ‘InferenceEngine::details::SharedObjectLoader::SharedObjectLoader(const wchar_t*)’
         : _so_loader(new Loader(name.c_str()))
                      ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /opt/intel/openvino/inference_engine/include/details/ie_so_loader.h:12:0,
                 from /opt/intel/openvino/inference_engine/include/details/ie_so_pointer.hpp:12,
                 from /opt/intel/openvino/inference_engine/include/ie_plugin_ptr.hpp:11,
                 from /opt/intel/openvino/inference_engine/include/ie_plugin_dispatcher.hpp:11,
                 from /opt/intel/openvino/inference_engine/include/inference_engine.hpp:21,
                 from /home/navigator/IntelEdge/librealsense-2.37.0/wrappers/openvino/./rs-vino/openvino-helpers.h:15,
                 from /home/navigator/IntelEdge/librealsense-2.37.0/wrappers/openvino/./rs-vino/base-detection.h:7,
                 from /home/navigator/IntelEdge/librealsense-2.37.0/wrappers/openvino/./rs-vino/object-detection.h:6,
                 from /home/navigator/IntelEdge/librealsense-2.37.0/wrappers/openvino/face/rs-face-vino.cpp:8:
/opt/intel/openvino/inference_engine/include/details/os/lin_shared_object_loader.h:32:14: note: candidate: InferenceEngine::details::SharedObjectLoader::SharedObjectLoader(const char*)
     explicit SharedObjectLoader(const char* pluginName) {
              ^~~~~~~~~~~~~~~~~~
/opt/intel/openvino/inference_engine/include/details/os/lin_shared_object_loader.h:32:14: note:   no known conversion for argument 1 from ‘const wchar_t*’ to ‘const char*’
/opt/intel/openvino/inference_engine/include/details/os/lin_shared_object_loader.h:22:7: note: candidate: constexpr InferenceEngine::details::SharedObjectLoader::SharedObjectLoader(const InferenceEngine::details::SharedObjectLoader&)
 class SharedObjectLoader {
       ^~~~~~~~~~~~~~~~~~
/opt/intel/openvino/inference_engine/include/details/os/lin_shared_object_loader.h:22:7: note:   no known conversion for argument 1 from ‘const wchar_t*’ to ‘const InferenceEngine::details::SharedObjectLoader&’
In file included from /opt/intel/openvino/inference_engine/include/ie_plugin_ptr.hpp:11:0,
                 from /opt/intel/openvino/inference_engine/include/ie_plugin_dispatcher.hpp:11,
                 from /opt/intel/openvino/inference_engine/include/inference_engine.hpp:21,
                 from /home/navigator/IntelEdge/librealsense-2.37.0/wrappers/openvino/./rs-vino/openvino-helpers.h:15,
                 from /home/navigator/IntelEdge/librealsense-2.37.0/wrappers/openvino/./rs-vino/base-detection.h:7,
                 from /home/navigator/IntelEdge/librealsense-2.37.0/wrappers/openvino/./rs-vino/object-detection.h:6,
                 from /home/navigator/IntelEdge/librealsense-2.37.0/wrappers/openvino/face/rs-face-vino.cpp:8:
/opt/intel/openvino/inference_engine/include/details/ie_so_pointer.hpp: In instantiation of ‘InferenceEngine::details::SOPointer<T, Loader>::SOPointer(const file_name_t&) [with T = InferenceEngine::IShapeInferExtension; Loader = InferenceEngine::details::SharedObjectLoader; file_name_t = std::__cxx11::basic_string<wchar_t>]’:
/opt/intel/openvino/inference_engine/include/ie_extension.h:130:26:   required from here
/opt/intel/openvino/inference_engine/include/details/ie_so_pointer.hpp:90:22: error: no matching function for call to ‘InferenceEngine::details::SharedObjectLoader::SharedObjectLoader(const wchar_t*)’
         : _so_loader(new Loader(name.c_str()))
                      ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /opt/intel/openvino/inference_engine/include/details/ie_so_loader.h:12:0,
                 from /opt/intel/openvino/inference_engine/include/details/ie_so_pointer.hpp:12,
                 from /opt/intel/openvino/inference_engine/include/ie_plugin_ptr.hpp:11,
                 from /opt/intel/openvino/inference_engine/include/ie_plugin_dispatcher.hpp:11,
                 from /opt/intel/openvino/inference_engine/include/inference_engine.hpp:21,
                 from /home/navigator/IntelEdge/librealsense-2.37.0/wrappers/openvino/./rs-vino/openvino-helpers.h:15,
                 from /home/navigator/IntelEdge/librealsense-2.37.0/wrappers/openvino/./rs-vino/base-detection.h:7,
                 from /home/navigator/IntelEdge/librealsense-2.37.0/wrappers/openvino/./rs-vino/object-detection.h:6,
                 from /home/navigator/IntelEdge/librealsense-2.37.0/wrappers/openvino/face/rs-face-vino.cpp:8:
/opt/intel/openvino/inference_engine/include/details/os/lin_shared_object_loader.h:32:14: note: candidate: InferenceEngine::details::SharedObjectLoader::SharedObjectLoader(const char*)
     explicit SharedObjectLoader(const char* pluginName) {
              ^~~~~~~~~~~~~~~~~~
/opt/intel/openvino/inference_engine/include/details/os/lin_shared_object_loader.h:32:14: note:   no known conversion for argument 1 from ‘const wchar_t*’ to ‘const char*’
/opt/intel/openvino/inference_engine/include/details/os/lin_shared_object_loader.h:22:7: note: candidate: constexpr InferenceEngine::details::SharedObjectLoader::SharedObjectLoader(const InferenceEngine::details::SharedObjectLoader&)
 class SharedObjectLoader {
       ^~~~~~~~~~~~~~~~~~
/opt/intel/openvino/inference_engine/include/details/os/lin_shared_object_loader.h:22:7: note:   no known conversion for argument 1 from ‘const wchar_t*’ to ‘const InferenceEngine::details::SharedObjectLoader&’
wrappers/openvino/face/CMakeFiles/rs-face-vino.dir/build.make:62: recipe for target 'wrappers/openvino/face/CMakeFiles/rs-face-vino.dir/rs-face-vino.cpp.o' failed
make[2]: *** [wrappers/openvino/face/CMakeFiles/rs-face-vino.dir/rs-face-vino.cpp.o] Error 1
CMakeFiles/Makefile2:305: recipe for target 'wrappers/openvino/face/CMakeFiles/rs-face-vino.dir/all' failed
make[1]: *** [wrappers/openvino/face/CMakeFiles/rs-face-vino.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

I got errors on versions openvino 2021.4 and librealsense-2.45, and any other combinations. I want to know that combinations of versions of openvino and librealsense compile without errors on Ubuntu 18.04.

0 Kudos
3 Replies
okih
Novice
323 Views

Hi, just FYI
It seems librealsense-2.4x openvino support still uses IE APIs removed in 2021.x.
You can find a pull request to support 2021.x at https://github.com/IntelRealSense/librealsense/pull/9273 .

librealsense-2.45.0 can be compiled with openvino 2020.3.2 LTS on utuntu 18.04 and gcc 7.5.0 to modify the followings in
librealsense-2.45.0/tools/realsense-viewer/openvino-face-detection.cpp :
40c40
< void detected_face::update_age( float value )
---
> void update_age( float value )
45c45
< void detected_face::update_gender( float value )
---
> void update_gender( float value )
207c207
< rs2::depth_frame df = NULL;
---
> rs2::depth_frame df = rs2::frame{};

These can avoid the errors.

/home/hood/build/librealsense/librealsense-2.45.0/tools/realsense-viewer/openvino-face-detection.cpp:40:10: error: extra qualification ‘detected_face::’ on member ‘update_age’ [-fpermissive]
void detected_face::update_age( float value )
^~~~~~~~~~~~~
/home/hood/build/librealsense/librealsense-2.45.0/tools/realsense-viewer/openvino-face-detection.cpp:45:10: error: extra qualification ‘detected_face::’ on member ‘update_gender’ [-fpermissive]
void detected_face::update_gender( float value )

/home/hood/build/librealsense/librealsense-2.45.0/tools/realsense-viewer/openvino-face-detection.cpp: In member function ‘virtual void openvino_face_detection::worker_body(rs2::frame)’:
/home/hood/build/librealsense/librealsense-2.45.0/tools/realsense-viewer/openvino-face-detection.cpp:207:31: error: conversion from ‘long int’ to non-scalar type ‘rs2::depth_frame’ requested
rs2::depth_frame df = NULL;

 

Regards,

Syamimi_Intel
Moderator
262 Views

Hi Alex Popov,

Thank you for reaching out. Did your issue solve with the answer given by Okih?

 

Hi Okih,

Thank you for sharing the answer.

 

 

Regards,

Syamimi


Syamimi_Intel
Moderator
217 Views

Hi Alex Popov,

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,

Syamimi


Reply