openterm icon indicating copy to clipboard operation
openterm copied to clipboard

Extract .7z files support (LZMA)

Open ghost opened this issue 7 years ago • 3 comments

ghost avatar Feb 11 '18 03:02 ghost

It seems that OpenTerm uses libarchive 2.8.3 to extract archives now, and libarchive has been able to extract 7-Zip since 3.0. Therefore it should be able to support 7-Zip files if it upgrades its libarchive.

Sent with GitHawk

kkebo avatar Feb 11 '18 03:02 kkebo

I think it's a bit more subtle than that. LZMA support in libarchive requires lzma.h and liblzma to be both available on the platform. The iOS development environment provides the latter, but not the former.

holzschu avatar Feb 11 '18 21:02 holzschu

I just gave it a try, and simply copying lzma headers from elsewhere is not enough to make LZMA extraction work (I tried with tar and gzip). If anyone wants to try, it's just a matter of enabling flags, adding the right headers and linking: https://github.com/holzschu/ios_system

holzschu avatar Feb 11 '18 21:02 holzschu