QT、PYQT、PySide许可证分析

参考文章:LGPL与闭源程序_51CTO博客_lgpl开源协议

QT许可证(PySide同QT)

 官方说明:Open Source Development | Open Source License | Qt

When selecting an open source license for your project, you contribute to free and open source software development by using Qt under any of the following licenses: LGPL version 3, GPL version 2 and GPL version 3.

QT支持开源许可和商业许可,其中开源许可包括:LGPL v3、GPL v2、GPL v3
对于LGPL v3许可证,分析如下:
可以发布闭源的商业程序,但是有一些限制,需要遵守许可证的规定
1. 采用动态链接的形式,可以以任何方式发布程序(特指闭源的商业程序,下同)
2. 如果采用非动态链接的形式,必须满足以下要求:

        (1) 必须在文档中声明,程序中使用了LGPL库
        Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License.
        (2) 必须在程序发布时包括一份LGPL许可(复制许可到一个文件即可)
        Accompany the Combined Work with a copy of the GNU GPL and this license document.
        (3) 必须开源使用了LGPL库代码的所有代码
        (4) 必须包含程序余下部分的目标文件(比如说.o文件),源代码并不是必须的

        针对第三条的说明:
        简单来说,LGPL协议要求,如果我们的类使用了LGPL库的代码,那么必须把这个类开源。例如,程序 app.exe 每个源文件都使用了 LGPL 库的代码,那么所有源代码都要开源。
为了避免这种情况,通常编写一个封装器,把 LGPL库的代码封装起来,这样就只需要开放这个封装器的代码,而其他使用了这个封装器的代码就不需要开放
        Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version.

        针对第四条的说明:
        第四条是对第三条的一种补充,那些使用了封装器的程序不需要开源,但是必须把编译的那些中间文件开放出来
         If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.

Qt的某些部分仅在GPL下提供给开源用户,因此需要注意在使用时区分GPL和LGPL的内容:Qt Features, Framework Essentials, Modules, Tools & Add-Ons


PYQT许可证

官方说明:Introduction — PyQt Documentation v5.15.7 (riverbankcomputing.com)

PyQt5 is dual licensed on all platforms under the Riverbank Commercial License and the GPL v3. Your PyQt5 license must be compatible with your Qt license. If you use the GPL version then your own code must also use a compatible license.

PyQt5, unlike Qt, is not available under the LGPL.

PYQT也有两种许可证:GPL v3和商业许可

使用了遵循GPL协议发布的软件,自身也必须遵守GPL协议。

必须开放源代码。允许使用者自由获取(复制)、修改、发布的产品,即拥有获取源码、修改源码、分发软件的自由。


许可证兼容问题

各类许可证及其评论 - GNU 工程 - 自由软件基金会

  • 27
    点赞
  • 27
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值