9.21a (x64) 7z method not supported

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Magister
Junior Member
Junior Member
Posts: 11
Joined: 2018-11-23, 15:46 UTC

9.21a (x64) 7z method not supported

Post by *Magister »

Trying to unpack this file

https //www waveshare com/w/upload/6/66/CP2102_EVAL_BOARD-Schematic.7z

fail with method not supported. Using the 7z application can unpack it (this is Deflate method according to 7z).
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6429
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: 9.21a (x64) 7z method not supported

Post by *Horst.Epp »

Confirmed without using a plugin.
With Total7zip plugin no problem of course.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3296)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Re: 9.21a (x64) 7z method not supported

Post by *MVV »

I was able to create an archive with the same method string "LZMA:3m Deflate" using the following command line:

Code: Select all

7z.exe a -m1=lzma:d3m -m2=deflate 1.7z
It seems that it has two chained methods, and standard TC unpacker doesn't support this.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: 9.21a (x64) 7z method not supported

Post by *ghisler(Author) »

The LZMA SDK which I'm using doesn't support the Deflate algorithm. DeflateDecoder.cpp is NOT included. However, it is included in the 7zip source code. I wonder why it's missing from the LZMA SDK. Other decoders like for PPMD are included in both.
Author of Total Commander
https://www.ghisler.com
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: 9.21a (x64) 7z method not supported

Post by *Usher »

Here's a quote from current lzma-sdk.txt:
Igor Pavlov wrote:LZMA SDK provides the documentation, samples, header files,
libraries, and tools you need to develop applications that
use 7z / LZMA / LZMA2 / XZ compression.
Now reading Methods.txt file:

PPMD and LZMA are 7z methods so both may be included in LZMA SDK.
Deflate is a zip method, not 7z/LZMA/LZMA2/XZ so it's NOT included.
Andrzej P. Wozniak
Polish subforum moderator
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Re: 9.21a (x64) 7z method not supported

Post by *MVV »

So it seems that an external Deflate decompressor should be used, e.g. one from TCUNZLIB.DLL.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: 9.21a (x64) 7z method not supported

Post by *ghisler(Author) »

No, there is a deflate compressor in the full 7zip package! I have included it now:
https://www.totalcommander.ch/win/tc7z.zip
Sources:
https://www.totalcommander.ch/win/tc7z_src.zip

Installation:
1. Close and re-open TC to ensure that tc7zip.dll gets unloaded.
2. Unpack the above archive to the Total Commander directory.

In addition to deflate, it also supports bzip2 now!
Author of Total Commander
https://www.ghisler.com
Magister
Junior Member
Junior Member
Posts: 11
Joined: 2018-11-23, 15:46 UTC

Re: 9.21a (x64) 7z method not supported

Post by *Magister »

Glad I could help to improve your fabulous program, I'm using it since the early 90s when it was WindowsCommander :)
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: 9.21a (x64) 7z method not supported

Post by *Usher »

ghisler(Author) wrote: 2018-11-29, 11:38 UTC No, there is a deflate compressor in the full 7zip package!
But there are license issues there.
* LZMA SDK is in public domain and contains only original work of Igor Pavlov, the 7-zip developer. You can do whatever you want with this code.
* The whole 7-zip package includes code developed by other people and licensed on GNU GPL/LGPL (or similar license) so you must follow the license restrictions when reusing this code.
Andrzej P. Wozniak
Polish subforum moderator
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: 9.21a (x64) 7z method not supported

Post by *ghisler(Author) »

The 7zip files are under LGPL, that's why I have published the sources above! See quote here:
https://sourceforge.net/projects/sevenzip/
Most of the source code is under the GNU LGPL license. The unRAR code is under a mixed license with GNU LGPL + unRAR restrictions. Check the license for details.
It would be a problem if the license were GPL. Fortunately, dynamic linking to LGPL code is perfectly fine with the LGPL, only static linking directly into another program would be problematic.
Author of Total Commander
https://www.ghisler.com
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: 9.21a (x64) 7z method not supported

Post by *Usher »

That's what I've expected, but I will repeat "check the licenses for details" for ever ;-)
Andrzej P. Wozniak
Polish subforum moderator
Post Reply