开发者

How to compile (build) my Qt application to run on many linux distributions?

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?

Th开发者_StackOverflow社区anks for your help


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜