如何设置和使用 LZMA 压缩算法 SDK [英] Ho to setup and use the LZMA compression algorithm SDK
问题描述
在网上做了一些研究,我发现 LZMA 算法是一种最新的、优化的、高性能的数据压缩算法,特别是在压缩率和解压缩时间方面.许多流行软件都支持它,例如 WinRAR、WinZip 和 7-Zip(默认情况下).
Making some research on the net, I found that one of the most recent, optimized and high-performance algorithms for data compression, especially in term of compression ratio and decompression time is the LZMA Algorithm. It's supported in many popular software like WinRAR, WinZip, and 7-Zip (By default).
我在这里找到了 LZMA SDK http://www.7-zip.org/sdk.html但我还没有找到在 Windows 中安装它或使用提供的源代码(示例)的方法.
I have found the LZMA SDK here http://www.7-zip.org/sdk.html But i haven't found a way to install it in windows or to use the source code provided (examples).
例如:在DOC ==>7cC.txt
: 有一些名为 7zMain.c
的测试应用程序,但在 sdk 文件夹中没有这样的文件......但还有命令 7z.exe
或 7z
在 cmd 中不起作用!!!
For example : In DOC ==> 7cC.txt
: there are some test applications called 7zMain.c
but there is no such file in sdk folder ... But also the command 7z.exe
or 7z
in cmd won't work !!!
注意:我已经安装了最新版本的 7-zip 15.14
Note : i have installed the latest version of 7-zip 15.14
任何建议......谢谢
Any suggestions ... thanks
推荐答案
在 LZMA SDK 中,我找到了可以在 Visual Studio 中轻松运行的文件 LzmaUtil.sln
.
In the LZMA SDK , i found the file LzmaUtil.sln
that you can run easily in visual studio.
构建解决方案后,您可以在 Visual Studio 中添加参数或直接从命令行运行它
After building the solution you can either add arguments in visual studio or just run it from command line
Usage: lzma <e|d> inputFile outputFile
e: encode file
d: decode file
这篇关于如何设置和使用 LZMA 压缩算法 SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!