如何设置和使用LZMA压缩算法SDK [英] Ho to setup and use the LZMA compression algorithm SDK

查看:148
本文介绍了如何设置和使用LZMA压缩算法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

任何建议...谢谢

推荐答案

在LZMA SDK中,我发现文件 LzmaUtil.sln 可以在Visual Studio中轻松运行。

In the LZMA SDK , i found the file LzmaUtil.slnthat 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆