Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 10 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(7)
我推荐 ZipLib。
我喜欢这个项目的个人原因:
我花了很长时间才找到这个项目——希望这对某人有帮助。
I'd recommend ZipLib.
Personal reasons why I love this project:
It took me a long time to find this project -- hope this helps someone.
当提出问题时它还不存在。但现在确实如此: miniz - 公共领域,单个 C 文件,明确受到 stb_image 之类的启发。
It didn't yet exist when the question was asked. But it does now: miniz - public domain, single C file, explicitly inspired by the likes of stb_image.
最流行的开源 zip 实现是 Info-Zip。 zip 文件格式中使用的 Deflate 算法是由 zlib 库实现的。两者都是在自由的、类似 BSD 的许可证下发布的,但不是公共领域。
The most popular open source zip implementation is Info-Zip. Deflate algorithm used in zip file format is implemented by zlib library. Both are released on liberal, BSD-like license, but not public domain.
它不是公共域,而是 Minizip,包含在 zlib,满足您的其他三个要求。它还包含 miniunz.c,一个非常容易理解的 zip/unzip 示例。
It's not public domain, but Minizip, which is included with zlib, meets your other three requirements. It also contains miniunz.c, a very easy to follow zip/unzip example.
公共领域是来自 7z 的 LZMA sdk
http://www.7-zip.org/sdk.html
问题:文档“不存在”:-(
Public Domain is the LZMA sdk from 7z
http://www.7-zip.org/sdk.html
Problem: the documentation is "not existing" :-(
我能想到的最接近的是 Xz-utils,它使用公共领域的 LZMA SDK。它本身不是 zip,也不使用 deflate 算法,但它是公共领域中为数不多的压缩库之一。
The closest I can think of would be Xz-utils, which uses the public domain LZMA SDK. It's not zip, per se, nor does it use the deflate algorithm, but it is one of the few compression libraries in the public domain.
http://www.bzip.org/ 非常常见,并且需要在多个目标中进行大量的 easy_installs语言。
http://www.bzip.org/ is pretty common and a requirement of tons of easy_installs in multiple target languages.