Ask Your Question
0

Qt with OpenCV

asked 2016-12-22 12:45:23 -0600

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

edit retag flag offensive close merge delete

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 ( 2016-12-23 00:24:53 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-12-25 15:12:22 -0600

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.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-12-22 12:44:12 -0600

Seen: 748 times

Last updated: Dec 25 '16