尝试在Windows上运行Qt应用程序的发行版时发生错误

问题描述:

我正在尝试构建我的应用程序的Windows版本。该程序在Qt Creator上编译并运行良好,但是当我尝试单独运行它时会引发以下错误:

I'm trying to build the Windows version of my app. The program compiles and runs fine on Qt Creator but when I try to run it standalone it throws the following error:

The procedure entry point _Z17qt_message_output9QtMsgTypePKc could not be located in the dynamic link library QtCore4.dll

我有所有必要的dll我的应用程序文件夹,他们是与我从Qt的网站下载的二进制文件一样的。这个错误驱使我疯了,因为我似乎找不到任何理由。该应用程序在Linux和MAC OS X上运行良好。

I have all the necessary dlls in my application folder and they are the same ones that came with the binaries I've downloaded from the Qt's website. This error is driving me crazy for I can't seem to find any reason for it. The application runs fine on Linux and MAC OS X.

我正在复制wrosng dll(不知道为什么Qt与2个不同的版本)。

Ok I found the problem. I was copying the wrosng dll (not sure why Qt ships with 2 different versions).

正确的是:C:\Qt\2010.05\qt \ bin和 NOT 在C:\ Qt\2010.05\bin

The right ones are in:C:\Qt\2010.05\qt\bin and NOT in C:\Qt\2010.05\bin

我希望这可以帮助任何可能绊倒这个问题。

I hope this helps anyone who might stumble upon this issue.