Jump to content
FabDev

7zip (LZMA) compression

Recommended Posts

Hello,

 

At this time does somebody know a library to handle 7zip compression (LZMA) without DLL ?

I have tried it :

https://github.com/ccy/delphi-zip

But file LzmaDec.pas et LzmaEnc.pas are missing. 

 

LZMA is in the list :

https://docwiki.embarcadero.com/Libraries/Sydney/en/System.Zip.TZipCompression

But it's not seems to be handled.

 

Better a cross-plateform  library.

Share this post


Link to post

Thank you it's work, but after some fails : I understand that it's work for zip with LZMA compression but not for 7z with LZMA compression.

 

Someone know a native Delphi library for 7z ? Because it's really better compression than zip !

 

 

Share this post


Link to post

ccy's version works properly on ZIP archives with LZMA compression. 7-zip is using LZMA2 by default, for which I did not see a pure pascal implementation yet.

Share this post


Link to post

Even that LZMA is not pure, it uses C obj files. Probably you could build LZMA2 objs as well and link them to Delphi app.

  • Like 1

Share this post


Link to post

Innosetup has LZMA and LZMA2 code, might be that it is using it "in own way", did not check that closely. But there are .obj files for 32 & 64bit build and so on. Don't know is the headers translated fully.

 

Ah did not see that this was Cross platform, and those might not be portable, but anyhow, maybe someone else can use the info,..,.

 

-Tee-

Edited by Tommi Prami

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×