开发者

Using LZMA SDK in C++

Can i use LZMA SDK in my application without using any dll libraries such as 7z.dll or 7za.dll so that my application's executable file should not have any dependencies?

If it is impossible where can i dow开发者_开发知识库nload 7z.dll/7za.dll? I downloaded LZMA from7-zip.org.

Thanks


I believe you cannot because of 7zip LGPL license. You can have your source closed using LGPL parts but you have to provide an ability to upgrade LGPL part, usually using it as separate DLL.

You can build these DLLs from sources


You can do it by static linking the lib into your executable, but according to its license, your code will have to be open source as well if you do it.


Yes, you can statically include/link the LZMA SDK within your application. In fact the SDK includes a pre-built executable called lzma.exe with no external LZMA dependencies.

In regards to licensing, while 7-Zip is distributed under the GNU LGPL, the LZMA SDK is public domain. Allowing for unrestricted reproduction and usage, although it is common courtesy to give credit where credit is due.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜