如何编译(构建)我的 Qt 应用程序以在许多 Linux 发行版上运行?

发布于 2024-09-10 03:17:59 字数 102 浏览 1 评论 0原文

我已经创建了一个 Qt GUI 应用程序,我想提供一个在尽可能多的发行版上运行的 Linux 可执行文件。这是可能的还是我必须为每个发行版提供单独的可执行文件?

感谢您的帮助

I have created a Qt GUI application and I want to provide a linux executable that runs on as many distributions as possible. Is this possible or do I have to provide a separate executable for each distribution?

Thanks for your help

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

与往事干杯 2024-09-17 03:17:59

看一下 LSB。这是许多发行版遵循的标准,以允许符合 LSB 的应用程序在其中任何一个发行版上运行。这应该是一个好的开始。如果您的应用程序符合 LSB 标准,那么您实际上无能为力。

Take a look at LSB. It is a standard which many distributions follow to allow an application compliant with the LSB to run on any of them. That should be a good start. If your app is LSB compliant, there really isn't much more that you can do.

月亮是我掰弯的 2024-09-17 03:17:59

将 Qt 库静态链接到可执行文件会增加可分发大小,但您不必担心是否安装了正确的 Qt 库。

看看这里的文档:
http://doc.trolltech.com/4.6/deployment-x11。 html#static-linking

希望这会有所帮助。

Statically linking your Qt libraries into your executable will increase your distributable size, but you will not have to worry about having the proper Qt libraries installed.

Take a look at the documentation here:
http://doc.trolltech.com/4.6/deployment-x11.html#static-linking

Hope this helps.

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