Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Ayaan_T
Beginner
88 Views

Use of OPENVINO's DLL in a project compiling with MinGW

Hi folks,

 

I post this subject even if I found another one that submitted a problem that looked like mine, but I think that I need more explanations.

 

I am currently developping an application which uses the Openvino's DLL (such as InferenceEngine, Opencv) but I understood that mangles aren't the same when you compile with MSVC and MinGW, so right now if I try to use the libraries from OPENVINO in my CMAKE project, I just have "undefined reference" errors each time I use elements from Openvino.

 

So my question is the following : Is there a valid and supported way to install OPENVINO with another compiler than the MSVC one, or just without Visual Studio 2019, or is there a way to use the library in a project compiled with MinGW that I don't know ?

 

Regards,

Ayaan

 

0 Kudos
4 Replies
Zulkifli_Intel
Moderator
75 Views

Hello Ayaan,


Thank you for reaching out to us.

Microsoft Visual Studio is required when to use the OpenVINO Toolkit as stated in the OpenVINO installation guide. We advise you to try the OpenVINO™ Deployment Manager as it goes through without Microsoft Visual Studio.


There is a discussion regarding the use of OpenVINOs DLLS with MinGW on this thread for your reference.

 

Regards,

Zulkifli


Ayaan_T
Beginner
46 Views

Hello Zulkifli,

 

Thank you for your answer, but even if I use OpenVINO Deployment Manager, the DLLs built with this tool will still be compiled with MSVC so it doesn't solve my mangle problem between MingW and MSVC or am I in the wrong ?

 

Furthermore, the thread you provided me seems to be my own question..

 

Regards,

Ayaan

Zulkifli_Intel
Moderator
19 Views

Hello Ayaan,


My apologies for the previous response. OpenVINO for Windows is compiled against MSBuild. Generally, OpenVINO requires all the pre-requisite to be available in order for it to work:


1.   Intel® Distribution of OpenVINO™ toolkit core components

2.   Microsoft Visual Studio* with C++ 2019 or 2017 with MSBuild

3.   CMake 3.10 or higher 64-bit

4.   Python 3.6 - 3.8 64-bit


without these, the OpenVINO won't be able to work properly. So, if your project is compiled using MinGW, OpenVINO pre-build libraries will likely fail during linking. 

 

Regards,

Zulkifli


Ayaan_T
Beginner
12 Views

Hello Zulkifli,

 

Thank you for your response. As I have to use another compiler in my project (Clang or MingW), which are the solutions I can consider to use openvino's libraries inside my solution ?

 

I have considered to program a C Interface to resolve the mangling issue between the two compilers, but maybe you know other solutions to resolve this compatibility problem or using MSVC is the only "pure C++" option that I have ?

 

Regards,

 

Ayaan

Reply