gpt4 book ai didi

c++ - Windows 上的 Qt5 部署

转载 作者:太空狗 更新时间:2023-10-29 23:05:51 26 4
gpt4 key购买 nike

我一直在回顾如何将我的桌面应用程序从 Qt5 Creator 部署到一组 .dll 和一个 .exe。所记录的过程似乎复杂得可笑:http://qt-project.org/doc/qt-5.0/qtdoc/deployment-windows.html .
请你能帮助我更好地理解它。

仅复制使用 Dependency Walker 找到的 .dll 不起作用 -t 告诉我缺少 Qt5Core.dll 的入口点,我已经在我的硬盘驱动器上尝试了 Qt5Core.dll 的每个版本。但我离题了。

  1. 它说您必须静态构建 QT。这实际上有什么作用?
  2. 静态构建完成后,如何撤消此操作并返回到我的正常环境?
  3. 第 1 步说。我在哪里可以找到这些选项?
  4. 有没有我可以运行的工具为我做这件事?

非常感谢。

(我使用的是 Windows 7 和 Qt 5.1。)

最佳答案

Do I have to include all these Qt dlls with my application?

静态链接很少见。您可能正在使用 LGPL 许可,因此您应该动态链接。

在您链接中提到的页面底部,它提供了一个示例项目的 dll 依赖项。

When looking at the release build of the Plug & Paint executable (plugandpaint.exe) with the depends tool, the tool lists the following immediate dependencies to non-system libraries:

然后它给出了一堆dll的图表。根据 .pro 文件中的模块,您将需要不同的 dll 和不同的运行时编译器依赖项。

希望对您有所帮助。

关于c++ - Windows 上的 Qt5 部署,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17736679/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com