C++ 我可以使用 Qt LGPL 许可证并在没有任何限制的情况下出售我的应用程序吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11994053/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-27 15:44:31  来源:igfitidea点击:

Can I use Qt LGPL license and sell my application without any kind of restrictions?

c++qtlicensing

提问by Rika

I want to start a cross-platform project. I had my researches and now I am almost certain Qt is the right deal. There is a big obstacle here though: licensing.

我想开始一个跨平台的项目。我进行了研究,现在我几乎可以肯定 Qt 是正确的选择。但是这里有一个很大的障碍:许可

I want to sell my project and I also don't want to give out any source related to my work or pay for a license. I checked and noticed Qt offers both commercial and open source solutions. I have heard too many conflicting sayings on Qt licensing which confused me a lot. Some say that even if I use LGPL version of Qt, I still need to submit my code. Is this true?

我想出售我的项目,我也不想透露与我的工作相关的任何来源或支付许可证费用。我检查并注意到 Qt 提供商业和开源解决方案。我听过太多关于 Qt 许可的相互矛盾的说法,这让我很困惑。有人说即使我使用LGPL版本的Qt,我仍然需要提交我的代码。这是真的?

Can someone give me a simple explanation on Qt licenses and tell me if I can sell my application without any kind of restrictions at all or not? Would anyone tell me any other equivalents to Qt for cross-platform development without any restrictions?

有人可以给我一个关于 Qt 许可证的简单解释,并告诉我我是否可以在没有任何限制的情况下出售我的应用程序?有没有人可以告诉我 Qt 的任何其他等价物,用于跨平台开发而没有任何限制?

回答by Cornstalks

Just dynamically link to Qt. If you dynamically link to LGPL libraries, there's nothing to worry about.

只需动态链接到 Qt。如果您动态链接到 LGPL 库,则无需担心。

If you statically link to them, you can just distribute your object files (not your source code), and you'll be fine.

如果您静态链接到它们,您只需分发您的目标文件(而不是您的源代码),就可以了。

The idea of the LGPL is that the end user has to be able to replace the LGPL library with a version they want. Dynamically linking to the LGPL library lets you do that, as does statically linking and distributing your object files. So long as you do this, you can sell your closed source program all you want.

LGPL 的想法是最终用户必须能够用他们想要的版本替换 LGPL 库。动态链接到 LGPL 库可以让您做到这一点,静态链接和分发您的目标文件也是如此。只要你这样做,你就可以随心所欲地出售你的闭源程序。

Of course, there's more to the LGPL than just this, but that's the relevant part.

当然,LGPL 不仅限于此,但这是相关的部分。