PDA

View Full Version : 0xc000007b error



gibucsoft
26th December 2015, 15:25
Hi. I programmed a Qt C++ app in Qt Creator 3.5.1 with Qt 5.5.1 32bit on Windows 7 64bit. I compiled it for publishing and I ran it, everything was OK, when I was testing it from the IDE. Then I went to its directory and I used windeployqt for deploying the necessary libraries. I ran it but I got an error, that the libgcc_s_dw2-1.dll library is missing. So I copied it there from the Qt directory. And then, when I tried to run it, I got a 0xc000007b error. But this error occurs even if I compile empty GUI Qt C++ app.

ChrisW67
27th December 2015, 04:55
Tell us exactly what you have deployed and perhaps we can help

gibucsoft
27th December 2015, 13:32
Dependencies of my program are:
Qt5Core.dll
Qt5Gui.dll
Qt5Network.dll
Qt5WebKitWidgets.dll
Qt5Widgets.dll
Qt5Xml.dll
libgcc_s_dw2-1.dll
libstdc++-6.dll
But as I have said, it happens even if I compile only an empty GUI Qt C++ app, deploy its dependencies and try to run it.

d_stranz
28th December 2015, 00:59
This error is typically caused by a mismatch between 64- and 32-bit binaries. If you are compiling in 32-bit mode (and make sure you are), then all of the DLLs you deploy must also be 32-bit binaries.

Are you also deploying qwindows.dll into the platforms subdirectory under your app?

gibucsoft
28th December 2015, 12:32
I checked, that my binary is 32-bit and all deployed libraries are 32-bit as well. Deploying of qwindows.dll changes nothing for me, still there is this error.

ChrisW67
28th December 2015, 12:59
You are missing the ICU libraries and possibly others
http://doc.qt.io/qt-5/windows-deployment.html#creating-the-application-package

gibucsoft
28th December 2015, 15:35
I have already solved this problem myself. The missing library, which was really causing this problem was libwinpthread-1.dll. But thanks both of you anyway.