【问题标题】:windeployqt.exe on Linux DistributionsLinux 发行版上的 windeployqt.exe
【发布时间】:2015-08-31 18:58:21
【问题描述】:

在 Windows 中,您可以运行 windeployqt.exe 来近似 Qt 应用程序的库、qml 和插件依赖项。

在 Linux 中,我可以使用 ldd 来确定库依赖关系,但我还没有找到一种方法来确定需要存在哪些额外的 Qml 文件以及我应该在安装程序中包含哪些插件。有什么建议吗?

【问题讨论】:

    标签: linux qt dependencies


    【解决方案1】:

    github 上有 linuxdeployqt 项目,可能会有所帮助。

    从 linuxdeployqt 代码看来:

    • 通过解析链接库来查找插件列表
    • qml 文件使用 qmlimportscanner 进行解析。这是来自代码的评论:

      扫描 qmldirs 中的 qml 文件以获取导入语句,将使用过的导入从 Qml2ImportsPath 部署到 ./qml

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多