First time here? Check out the FAQ!

Ask Your Question
0

Qt with OpenCV

asked Dec 22 '16

vics gravatar image

I built OpenCV (3.1) by mingw32 with option with Qt 5.7 (set that in CMake utility). My OS is Windows 7 x64

Now i want to test it. I use the sample OpenCV program. I did it in Qt Creator. If the program running in Qt - It's working OK.

But if I run program without QTCreator - appearing the error

Entry point into procedure _Z21qRegisterResourceDataiPKhS0_S0 not find in library DLL Qt5Core.dll

Here is the PATH system variables

C:\Qt\Qt5.7.1\Tools\mingw530_32\bin; C:\Qt\Qt5.7.1\5.7\mingw53_32\bin; E:\opencv\release\x86\mingw\bin; E:\opencv\release\x86\mingw\lib;

I copied Qt5Core.dll from C:\Qt\Qt5.7.1\5.7\mingw53_32\bin to my project folder. If I do that i've another error

The procedure entry point ?left@QString@@QBE>AV1@H@Z could't be found in library DLL Qt5Core.dll

What's wrong ?

Thanks at advance

Preview: (hide)

Comments

It seems that some dependencies are missed. Try to copie all dlls from the Qt\mingw\bin folder into directory wiyh your exe. Or check app.exe dependencies with dependency walker

pi-null-mezon gravatar imagepi-null-mezon (Dec 23 '16)edit

1 answer

Sort by » oldest newest most voted
0

answered Dec 25 '16

Please have a look at the windeployqt console app in the Qt folder. You need to add all the required dll to you Qt application. I suggest you to use msvc instead of mingw. With mingw sometimes it is very hard to link the application correctly.

Preview: (hide)

Question Tools

1 follower

Stats

Asked: Dec 22 '16

Seen: 854 times

Last updated: Dec 25 '16