Menu

#624 Deflate SDK integration

open
nobody
None
5
2025-02-26
2025-02-26
Stefano
No

Hi!
I am updating 7zip sdk from 19 to 24.
Testing my application, now it fails against "deflate" encoded archives.
Checking the 19 version on my svn repo, I saw a colleague of mine, years ago, added few files into the 7zip sdk (files that do not exists in the original version of the sdk). These files seems to do the magic for Deflate. Here's the list:

lzma/C/BwtSort.c
lzma/C/BwtSort.h
lzma/C/HuffEnc.c
lzma/C/HuffEnc.h
lzma/C/Ppmd8.c
lzma/C/Ppmd8.h
lzma/C/Ppmd8Dec.c
lzma/C/Ppmd8Enc.c
lzma/C/Sha1.c
lzma/C/Sha1.h
lzma/CPP/7zip/Archive/Zip
lzma/CPP/7zip/Archive/Zip/StdAfx.h
lzma/CPP/7zip/Archive/Zip/ZipAddCommon.cpp
lzma/CPP/7zip/Archive/Zip/ZipAddCommon.h
lzma/CPP/7zip/Archive/Zip/ZipCompressionMode.h
lzma/CPP/7zip/Archive/Zip/ZipHandler.cpp
lzma/CPP/7zip/Archive/Zip/ZipHandler.h
lzma/CPP/7zip/Archive/Zip/ZipHandlerOut.cpp
lzma/CPP/7zip/Archive/Zip/ZipHeader.h
lzma/CPP/7zip/Archive/Zip/ZipIn.cpp
lzma/CPP/7zip/Archive/Zip/ZipIn.h
lzma/CPP/7zip/Archive/Zip/ZipItem.cpp
lzma/CPP/7zip/Archive/Zip/ZipItem.h
lzma/CPP/7zip/Archive/Zip/ZipOut.cpp
lzma/CPP/7zip/Archive/Zip/ZipOut.h
lzma/CPP/7zip/Archive/Zip/ZipRegister.cpp
lzma/CPP/7zip/Archive/Zip/ZipUpdate.cpp
lzma/CPP/7zip/Archive/Zip/ZipUpdate.h
lzma/CPP/7zip/Common/MemBlocks.cpp
lzma/CPP/7zip/Common/MemBlocks.h
lzma/CPP/7zip/Common/OutMemStream.cpp
lzma/CPP/7zip/Common/OutMemStream.h
lzma/CPP/7zip/Common/ProgressMt.cpp
lzma/CPP/7zip/Common/ProgressMt.h
lzma/CPP/7zip/Compress/BZip2Const.h
lzma/CPP/7zip/Compress/BZip2Crc.cpp
lzma/CPP/7zip/Compress/BZip2Crc.h
lzma/CPP/7zip/Compress/BZip2Decoder.cpp
lzma/CPP/7zip/Compress/BZip2Decoder.h
lzma/CPP/7zip/Compress/BZip2Encoder.cpp
lzma/CPP/7zip/Compress/BZip2Encoder.h
lzma/CPP/7zip/Compress/BZip2Register.cpp
lzma/CPP/7zip/Compress/BitlDecoder.cpp
lzma/CPP/7zip/Compress/BitlDecoder.h
lzma/CPP/7zip/Compress/BitlEncoder.h
lzma/CPP/7zip/Compress/BitmDecoder.h
lzma/CPP/7zip/Compress/BitmEncoder.h
lzma/CPP/7zip/Compress/Deflate64Register.cpp
lzma/CPP/7zip/Compress/DeflateConst.h
lzma/CPP/7zip/Compress/DeflateDecoder.cpp
lzma/CPP/7zip/Compress/DeflateDecoder.h
lzma/CPP/7zip/Compress/DeflateEncoder.cpp
lzma/CPP/7zip/Compress/DeflateEncoder.h
lzma/CPP/7zip/Compress/DeflateRegister.cpp
lzma/CPP/7zip/Compress/HuffmanDecoder.h
lzma/CPP/7zip/Compress/ImplodeDecoder.cpp
lzma/CPP/7zip/Compress/ImplodeDecoder.h
lzma/CPP/7zip/Compress/ImplodeHuffmanDecoder.cpp
lzma/CPP/7zip/Compress/ImplodeHuffmanDecoder.h
lzma/CPP/7zip/Compress/LzOutWindow.cpp
lzma/CPP/7zip/Compress/LzOutWindow.h
lzma/CPP/7zip/Compress/Mtf8.h
lzma/CPP/7zip/Compress/PpmdZip.cpp
lzma/CPP/7zip/Compress/PpmdZip.h
lzma/CPP/7zip/Compress/ShrinkDecoder.cpp
lzma/CPP/7zip/Compress/ShrinkDecoder.h
lzma/CPP/7zip/Compress/ZlibDecoder.cpp
lzma/CPP/7zip/Compress/ZlibDecoder.h
lzma/CPP/7zip/Compress/ZlibEncoder.cpp
lzma/CPP/7zip/Compress/ZlibEncoder.h
lzma/CPP/7zip/Crypto/HmacSha1.cpp
lzma/CPP/7zip/Crypto/HmacSha1.h
lzma/CPP/7zip/Crypto/Pbkdf2HmacSha1.cpp
lzma/CPP/7zip/Crypto/Pbkdf2HmacSha1.h
lzma/CPP/7zip/Crypto/Sha1Cls.h
lzma/CPP/7zip/Crypto/WzAes.cpp
lzma/CPP/7zip/Crypto/WzAes.h
lzma/CPP/7zip/Crypto/ZipCrypto.cpp
lzma/CPP/7zip/Crypto/ZipCrypto.h
lzma/CPP/7zip/Crypto/ZipStrong.cpp
lzma/CPP/7zip/Crypto/ZipStrong.h

I tryed to integrete these into the v24 but there's no way I can make them compile.
I searched the web for info about these files, but I couldn't find a clue.
Where they came from? Is there an update version of these for the v24?

Thank you!

Discussion

  • Igor Pavlov

    Igor Pavlov - 2025-02-26

    lzma sdk is reduced version of 7-zip.
    7-zip contains all files.
    so you can get 7-zip project, and remove some files.
    or so you can get lzma sdk project and add some files from 7-zip.

     
  • Igor Pavlov

    Igor Pavlov - 2025-02-26

    CPP\7zip\Bundles\
    Alone7z - smallest project from LZMA SDK.
    Alone - larger project with deflate support in 7-Zip.
    Alone2 - full command line 7-zip wioth all formats.

     
    👍
    1

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.