尝试在 Windows 上运行 Qt 应用程序的发布版本时出错

发布于 2024-10-05 19:43:55 字数 322 浏览 0 评论 0原文

我正在尝试构建我的应用程序的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

倾听心声的旋律 2024-10-12 19:43:55

好吧,我发现了问题。我正在复制 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文