Qt构建,可以链接静态开箱? [英] Qt build that can link statically out of the box?

查看:159
本文介绍了Qt构建,可以链接静态开箱?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Qt构建一个小应用程序。事实证明,我需要从头重新配置和Qt为了能够静态链接。我之前做过,我记得这是一个很长的过程。



因此,任何人都知道一个Qt SDK安装程序,提供了静态链接的能力

除了

成为一个可以链接静态开箱即用的链接注意许可!



如果您在(L)GPL 许可条款下使用Qt, (L)GPL ,一切正常。



当然,如果你想使专有软件比情况更复杂。非常粗略地说,最终用户应该能够(修改和)重新编译Qt,并使用库的(修改和)重新编译版本来使用您的应用程序。要通过静态链接实现此目的,而不必让最终用户可以使用源代码,则只需提供可链接的对象代码,以便他们可以与修改后的库重新链接。



此外,如果您使用 LGPL Qt并提供源代码时,我记得正确,您不必为自己的代码使用LGPL许可证。您可以撰写自己的许可(如果您是律师),并拒绝任何其他用户可以重新编译和重新链接的权利。


I have used Qt to build a small application. It turns out that I need to reconfigure and Qt from scratch in order to be able to link statically. I've done it before, and I remember that it was a very long process.

So does anyone know a Qt SDK installer that provides the ability for static linking out of the box?

解决方案

In addition to Martin Beckett's answer.

Be careful with licenses!

If you use Qt under (L)GPL license terms and distribute your own app under (L)GPL too, than everything is OK.

Of course if you want to make proprietary software than the situation is more complicated. Very roughly, the end user should be able to (modify and) recompile Qt and use your application with the (modified and) recompiled version of the library. To achieve this with static linking, without making your source code available to the end users, it is enough to provide a linkable object code so they can re-link with their modified library.

Also if I remember correctly if you use LGPL Qt and provide source code, you don't have to use the LGPL license for your own code. You can compose your own license (if you are a lawyer =)) and deny any rights other than that the user can re-compile and re-link.

这篇关于Qt构建,可以链接静态开箱?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆