Page 1 of 1

9.21a (x64) 7z method not supported

Posted: 2018-11-23, 15:50 UTC
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).

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

Posted: 2018-11-23, 16:25 UTC
by Horst.Epp
Confirmed without using a plugin.
With Total7zip plugin no problem of course.

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

Posted: 2018-11-24, 18:01 UTC
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.

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

Posted: 2018-11-26, 22:53 UTC
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.

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

Posted: 2018-11-27, 03:33 UTC
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.

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

Posted: 2018-11-27, 11:19 UTC
by MVV
So it seems that an external Deflate decompressor should be used, e.g. one from TCUNZLIB.DLL.

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

Posted: 2018-11-29, 11:38 UTC
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!

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

Posted: 2018-11-29, 13:14 UTC
by Magister
Glad I could help to improve your fabulous program, I'm using it since the early 90s when it was WindowsCommander :)

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

Posted: 2018-11-29, 17:49 UTC
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.

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

Posted: 2018-12-03, 20:11 UTC
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.

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

Posted: 2018-12-04, 18:52 UTC
by Usher
That's what I've expected, but I will repeat "check the licenses for details" for ever ;-)