FabDev 8 Posted November 24, 2022 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
Fr0sT.Brutal 900 Posted November 24, 2022 42 minutes ago, FabDev said: But file LzmaDec.pas et LzmaEnc.pas are missing. https://github.com/ccy/lzmasdk/tree/57cdd679924d4dc2747a1cdbbe1134e277a9d28a/Delphi 1 Share this post Link to post
FabDev 8 Posted November 24, 2022 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
aehimself 396 Posted November 24, 2022 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
Fr0sT.Brutal 900 Posted November 25, 2022 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. 1 Share this post Link to post
Tommi Prami 130 Posted December 2, 2022 (edited) 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 December 2, 2022 by Tommi Prami Share this post Link to post