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

Unable to build openVINO C++ samples code on Intel system studio on Linux.

PV__Sharfudheen
Beginner
512 Views

Hi,

I tried to build intel object_detection_demo_ssd_async C++ sample code on intel system stuido and I am not able to build the project using Intel system studio IDE. I installed intel openvino R5 version SDK and Intel system studio 2019 version in my system(IEI TANK AIoT Developer Kit).

I am able to generate object_detection_demo_ssd_async.o file using command terminal as explained in the below link.

https://software.intel.com/en-us/articles/OpenVINO-Install-Linux

I am working on object detection project where I used intel openVINO inference  module for object detection and its working as expected in windows and the same C++ project I want to build it in Linux. So I used Intel System studio and openVINO R5 toolkit for my development. I referred the below link to build a sample C++ openvino inference module. But build is failed and getting the following error(PFA for error message).

https://software.intel.com/en-us/articles/get-started-with-openvino-and-intel-system-studio-2019#_Prerequisites

 

Error_1.pngError_2.pngdependencies_C++_openvino.png

Please help me to resolve this issue and build a sample opeVINO C++ project on intel system studio IDE without using any custom docker image.

Thanks,

Sharaf

 

 

 

 

 

0 Kudos
2 Replies
Shubha_R_Intel
Employee
512 Views

Dear Sharfudheen:

Ok looking at your errors, I see two problems. The first is C++ semantic errors. There is a place within Intel System Studio/Intel C++ Compiler where you can specifically tell it which version of C++ to use - C++ 11 ? C++ 14 ? C++ 17 ? For OpenVIno I believe you need to set ICC up for C++ 14. This forum post will give you guidance on how to set up the correct C++ variant:

https://software.intel.com/en-us/forums/intel-c-compiler/topic/759679

The other issue I see are linking errors related to gflags ( a Google third party tool). You shouldn't have to download this separately as it comes with the OpenVino product installation.

Hope it helps and thanks for using OpenVino !

Shubha

 

0 Kudos
PV__Sharfudheen
Beginner
512 Views

Hi Shubha,

Thanks for your reply.

I tried both options you mentioned above but still didn't resolved the issue.

1. Semantic error

I changed the compiler option to --std==c++14 and --std=c++17 getting the following errors while building.

 

semantic_error_2.png

Error_C++1417.png

2. Static gflag library linking error.

As u mentioned above, I didnt add libgflags_nothreads.a library into linker setting. I have added all shared library(.so formatI in the linker properties. How to add static lib (.a file) in intel system studio?

Please help me to resolve this issue.

 

Thanks in advance

Sharaf

 

 

0 Kudos
Reply