【问题标题】:Distribute QT app in linux在 linux 中分发 QT 应用程序
【发布时间】:2016-08-17 00:07:40
【问题描述】:

我想在 linux 而不是源代码中分发 QT 应用程序。

我希望我的应用程序在未安装 QT 的 linux 中运行。

我发现谷歌等... 他们说

1. ldd ./application and check the .so file 
2. copy .so file to another dir
3. move application file to same dir
4. then distribute(?)

我尝试了很多解决方案(静态编译,动态编译) ,但它不起作用.....

如何分发我的应用程序....? (我在 Ubuntu 14.04 中使用 QT Creator)

【问题讨论】:

  • 所以你不关心LGPL的licence,可以和Qt进行统计联系?

标签: c++ linux qt distribute


【解决方案1】:

look at the linux-deployment-docs of qt

您必须在系统上静态构建 Qt。之后,您可以静态链接 Qt 库。如果 ldd 输出未打印 Qt 相关库,则它是成功的,并且该应用程序将在另一个发行版上运行而无需安装 Qt。 glibc 和其他一些共享对象 保持共享。

因此,如果您在不同系统的 ldd 输出中收到 not found 消息(即 libicui18n.so.51),则必须安装所需的元素。

提示: 我有时通过将 .so 文件从我的系统复制到不同的系统并调用 ldconfig 来解决这些问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2010-10-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-12-10
    • 2017-03-21
    相关资源
    最近更新 更多