Ask Your Question

Qt with OpenCV

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

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


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 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

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

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
Login/Signup to Answer

Question Tools

1 follower


Asked: 2016-12-22 12:44:12 -0500

Seen: 383 times

Last updated: Dec 25 '16