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.
6577 Обсуждение

Qt5.12.2 compiled OpenVINO failure

roc
Начинающий
1 446Просмотр.

Hi,guys

I met one issue that when used QT 5.12.2 compile OpenVINO2023 with error .In .pro file I set up environment :

LIBS += -L$$quote(C:\Program Files (x86)\Intel\openvino_2023.1\runtime\3rdparty\tbb\lib) \

                       -ltbb \ -ltbb12 \ -ltbbbind_2_5 \ -ltbbmalloc \ -ltbbmalloc_proxy

LIBS += -L$$quote(C:\Program Files (x86)\Intel\openvino_2023.1\runtime\lib\intel64\Release) \ -lopenvino \ -llibprotobuf-lite \ -lopenvino_pytorch_frontend \ -lopenvino_c \ -lopenvino_onnx_frontend

Then run code :

#include <openvino/openvino.hpp>

int main(int argc, char *argv[]) {

                std::cout << ov::get_openvino_version() << std::endl;

                return 0;

}

Compiled with QT :

C2127:ov::device::properties:illegal initialization of 'contexpr' entity with a non-constant expression,failure was because type  ov::device::Properties is not a literal type.

C2127 error located in properties.hpp line 746,749.

C2051:case expression  not constant.

C2127 error located in properties.hpp line 971,973.

0 баллов
3 Ответы
Zulkifli_Intel
Модератор
1 386Просмотр.

Hi roc,

Thank you for reaching out to Intel Customer Support.

 

We are checking this out. Do you have a CMAKE script? If yes please share it with us.



Sincerely,

Zul


Zulkifli_Intel
Модератор
1 343Просмотр.

Hi roc,


Currently, we do not have any documentation on the Qt build for OpenVINO, and we cannot guarantee that it is going to work, but there is a discussion in StackOverflow that might interest you.


Sincerely,

Zulkifli


Zulkifli_Intel
Модератор
1 227Просмотр.

Thank you for your question. If you need any additional information from Intel, please submit a new question as this thread is no longer being monitored.


Ответить