Category talk:HowTo

From Qt Wiki
Jump to navigation Jump to search

I am trying to build the lib with Cmake Gui

I just followed the instructions from https://wiki.qt.io/How_to_setup_Qt_and_openCV_on_Windows and got a lot of errors


> Severity Code Description Project File Line Suppression State Error LNK2001 unresolved external symbol "__declspec(dllimport) void __cdecl qt_assert_x(char const *,char const *,char const *,int)" (__imp_?qt_assert_x@@YAXPEBD00H@Z) opencv_cvv C:\Users\z002xd5y\source\opencv\build\modules\cvv\rawview.obj 1

and

> Severity Code Description Project File Line Suppression State Error LNK2019 unresolved external symbol "double __cdecl cvGetPropVsync_W32(char const *)" (?cvGetPropVsync_W32@@YANPEBD@Z) referenced in function cvGetWindowProperty opencv_highgui C:\Users\z002xd5y\source\opencv\build\modules\highgui\window.obj 1


basically it is 2 modules - opencv_cvv and opencv_highgui.

please advise.

I expected to have CMakefile and build working out of the box with no issues.

Issued started actually when I ENABLED Qt and OpenGL. Simply enabling did not help, program was crushing at run time saying lib was compiled without OPENGL and QT, despite options were selected.