Qt LGPL license exception? [closed]

為{幸葍}努か 提交于 2019-12-14 01:26:54

问题


I'm using the Qt/Mfc Migration Framework to begin to convert some UI code from MFC to Qt. I'm wondering whether I absolutely have to keep the Qt migration code in a seperate library or if it would be possible to include it in my project. In order to do that, I would have to modify it slightly (add #include "stdafx.h" for example and change some other include paths). The Qt LGPL exception, which is also used for the migration framework, reads:

Nokia Qt LGPL Exception version 1.0

As a special exception to the GNU Lesser General Public License version 2.1, the object code form of a "work that uses the Library" may incorporate material from a header file that is part of the Library. You may distribute such object code under terms of your choice, provided that the incorporated material (i) does not exceed more than 5% of the total size of the Library; and (ii) is limited to numerical parameters, data structure layouts, accessors, macros, inline functions and templates.

Would I trigger the license or am I still in the green?


回答1:


Either I'm misunderstanding what you want to do, or you clearly aren't allowed to do it.

You say you want to "include the Qt code in my project", which implies you want to link the whole of their library (or all the pieces you're using) into your own module, rather than keeping it in a separate DLL.

But the terms say you can "incorporate material from a header file" (my emphasis) not the main library.

And they say "provided that the incorporated material (i) does not exceed more than 5% of the total size of the Library", not the whole library.

And they say "limited to numerical parameters, data structure layouts, accessors, macros, inline functions and templates", not any of the main code of the library.

Seems blatantly obvious to me, but have I misunderstood something?




回答2:


Any component of the Qt solutions must be built as a DLL if you want to use it under LGPL terms. It doesn't matter whether you modify it or not.



来源:https://stackoverflow.com/questions/1356918/qt-lgpl-license-exception

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