为 Qt 应用程序创建 Linux 安装 [英] Create Linux install for Qt application
问题描述
我刚刚用 Qt Creator 做了一个很棒的程序.我对自己很满意.如何将其从台式机移至笔记本电脑?
I just made a great program with Qt Creator. I'm very pleased with myself. How do I move it from my desktop to my laptop?
那么,最好的方法是安装程序,对吧?而对于 Ubuntu,那是一个 debian 包,对吗?
So, the best way would be an installer right? And for Ubuntu, that's a debian package right?
我该怎么做?有人做过吗?他们可以分享 QT 4.5 的模板文件吗?
How do I do that? Has someone done this and could they share the template files for QT 4.5?
谢谢,
迈克
推荐答案
如果你想在另一台机器 desktop 机器上运行你创建的应用程序 foo
笔记本电脑,然后简单地
If you want to run the application foo
you created on the machine desktop on another machine laptop, then simply
- 复制二进制文件,例如通过
scp
- 在笔记本电脑上运行
ldd foo
- 为所有缺少的库安装库包
- 回到 2. 并重复,直到您丢失了库.
这可以在几分钟内完成.
This can be done in minutes.
Debian 软件包将自动执行步骤 2) 和 3) 并为您提供 Depends:
以便在安装时添加适当的库(如果需要).但是,如果您只是想从一台机器转到另一台机器(使用相同的发行版),那么创建一个包就太过分了.
A Debian package would automate steps 2) and 3) and provide you Depends:
so that upon installation proper libraries are added, if needed. But if you just want to go from one machine to another (using the same distro) then creating a package is overkill.
这篇关于为 Qt 应用程序创建 Linux 安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!