尝试在 Windows 上运行 Qt 应用程序的发布版本时出错
我正在尝试构建我的应用程序的 Windows 版本。该程序在 Qt Creator 上编译并运行良好,但是当我尝试独立运行它时,它会抛出以下错误:
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'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
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,我发现了问题。我正在复制 wrosng dll(不知道为什么 Qt 附带 2 个不同的版本)。
正确的位于:C:\Qt\2010.05\qt\bin 中,NOT 位于 C:\Qt\2010.05\bin 中,
我希望这可以帮助任何可能偶然发现此问题的人。
Ok I found the problem. I was copying the wrosng dll (not sure why Qt ships with 2 different versions).
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.