Create Linux install for Qt application

二次信任 提交于 2019-12-23 09:28:10

问题


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?

So, the best way would be an installer right? And for Ubuntu, that's a debian package right?

How do I do that? Has someone done this and could they share the template files for QT 4.5?

Thanks,

Mike


回答1:


If you want to run the application foo you created on the machine desktop on another machine laptop, then simply

  1. copy the binary, for example via scp
  2. run ldd foo on laptop
  3. install the library package for all missing libaries
  4. go back to 2. and repeat until you have missing libaries.

This can be done in minutes.

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.




回答2:


No first hand experience. But, for Ubuntu, creating a Debian package should suffice your needs here. I just came across Debian Package Builder. HTH.




回答3:


Qt Creator itself is packaged using BitRock InstallBuilder, you may want to try that



来源:https://stackoverflow.com/questions/1642553/create-linux-install-for-qt-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!