9.21a (x64) 7z method not supported

Please report only one bug per message!

Moderators: sheep, Hacker, Stefan2, white

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

9.21a (x64) 7z method not supported

Post by *Magister » 2018-11-23, 15:50 UTC

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: 3227
Joined: 2003-02-06, 17:36 UTC
Location: Germany

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

Post by *Horst.Epp » 2018-11-23, 16:25 UTC

Confirmed without using a plugin.
With Total7zip plugin no problem of course.
Windows 10 Home x64 October 2018 Update, Version 1809 (OS Build 17763.379)
Intel(R) Core(TM) i7-4770 CPU @ 3.40GH, 16GB RAM
TC 9.22 x64 and x86, Everything 1.4.1.939 (x64)

User avatar
MVV
Power Member
Power Member
Posts: 8224
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

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

Post by *MVV » 2018-11-24, 18:01 UTC

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: 37013
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

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

Post by *ghisler(Author) » 2018-11-26, 22:53 UTC

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
http://www.ghisler.com

User avatar
Usher
Senior Member
Senior Member
Posts: 272
Joined: 2011-03-11, 10:11 UTC

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

Post by *Usher » 2018-11-27, 03:33 UTC

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.
Regards from Poland
Andrzej P. Wozniak

User avatar
MVV
Power Member
Power Member
Posts: 8224
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

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

Post by *MVV » 2018-11-27, 11:19 UTC

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: 37013
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

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

Post by *ghisler(Author) » 2018-11-29, 11:38 UTC

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
http://www.ghisler.com

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

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

Post by *Magister » 2018-11-29, 13:14 UTC

Glad I could help to improve your fabulous program, I'm using it since the early 90s when it was WindowsCommander :)

User avatar
Usher
Senior Member
Senior Member
Posts: 272
Joined: 2011-03-11, 10:11 UTC

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

Post by *Usher » 2018-11-29, 17:49 UTC

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.
Regards from Poland
Andrzej P. Wozniak

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 37013
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

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

Post by *ghisler(Author) » 2018-12-03, 20:11 UTC

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
http://www.ghisler.com

User avatar
Usher
Senior Member
Senior Member
Posts: 272
Joined: 2011-03-11, 10:11 UTC

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

Post by *Usher » 2018-12-04, 18:52 UTC

That's what I've expected, but I will repeat "check the licenses for details" for ever ;-)
Regards from Poland
Andrzej P. Wozniak

Post Reply