且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

是否可以在没有从源代码构建Qt的情况下部署Qt应用程序?

更新时间:2023-09-20 11:31:46

因此,基本上,您希望将Qt应用程序部署在未安装Qt的其他系统中。

So, basically you want to deploy your Qt application in some other system where Qt is not installed.

Qt部署在linux中是一个相当困难的过程。您共享的链接是一个知识渊博但困难的部署过程。

Qt deployment in linux is quite a difficult process. The link that you shared is quite a knowledgeable but difficult process of deploying.

为了使其更加简单,我建议您看一下。在这里您可以找到可执行二进制文件,您可以使用该文件创建独立的 appimage 可以在任何其他系统(运行相同发行版的Linux)中运行。您只需输入Qt Creator本身创建的可执行二进制文件的路径,上述工具即可完成其余工作。它将解决所有依赖性并输出Qt应用程序的独立二进制文件,该文件可以在其他系统中运行。

To make it a lot simpler, I would suggest to take a look into this. Here you can find an executable binary, using which you can create a standalone appimage of you Qt project which can be run in any other system (which running the same distribution of linux). You have to just input the path of the executable binary created by Qt Creator itself, the above said tool will do the rest. It will resolve all dependency and output a standalone binary of your Qt application, that can be run in other systems.

我愿意接受其他问题。希望这可以帮助。

I am open to further questions. Hope this helps.