Giter Site home page Giter Site logo

7zip-cpp's People

Contributors

cwlmyjm avatar deams51 avatar error454 avatar getnamo avatar jsobiers avatar keithjjones avatar kenkit avatar kocourkuba avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

7zip-cpp's Issues

Non zip compression format detection doesn't seem to work (with fix)

Hi,

I had a 7z file to extract but SevenZipExtractor::DetectCompressionFormat would think that the format was CompressionFormat::Lzma86 instead of CompressionFormat::SevenZip.

The format is detected is by trying to open the archive with each type consecutively until the archive opens correctly (link to source) but the file is not seeked to the beginning after each iteration, seemingly leading to no/incorrect detection for all but zip formats.

Seeking the file to the beginning before each iteration with fileStream->Seek({}, STREAM_SEEK_SET, nullptr); seems to fix the issue.

About getcompressionformat

Isn't getcompressionformat used to get the compressed package format?
Why does the 7z package use getcompressionformat and the result is 2, which is zip

udf format support

I'm trying to extract a windows image and then compress it again to iso file

the problem is that the the extractor detects that the compression format is cab and extracts some garbage after consuming too much of the disk io speed

so I change the format to Iso but now it extracts a one file named README.txt which contains :
""This disc contains a "UDF" file system and requires an operating system
that supports the ISO-13346 "UDF" file system specification.""

I opened the iso file with 7-zip and found that the format is udf and it is able to extract it , thus I assumed that this library lacks support for udf files

Might be great to support remote|network extract/list

This feature would make the library invincible. I will research on how to do this when I have time.
But I think it is possible if we create a file stream that has member functions such as read() which can in turn read from network streams i.e http, ftp since http supports range requests.

Cannot compile 7zpp.VS2017.sln - missing include files

1> UsefulFunctions.cpp
1> c:\7zip-cpp-master\7zpp\UsefulFunctions.h(5): fatal error C1083: Cannot open include file: '7zip/Archive/IArchive.h': No such file or directory
1> SevenZipLister.cpp
1> c:\7zip-cpp-master\7zpp\ArchiveOpenCallback.h(6): fatal error C1083: Cannot open include file: '7zip/Archive/IArchive.h': No such file or directory
1> SevenZipExtractor.cpp
1> c:\7zip-cpp-master\7zpp\ArchiveOpenCallback.h(6): fatal error C1083: Cannot open include file: '7zip/Archive/IArchive.h': No such file or directory
1> SevenZipCompressor.cpp
1> c:\7zip-cpp-master\7zpp\ArchiveUpdateCallback.h(6): fatal error C1083: Cannot open include file: '7zip/Archive/IArchive.h': No such file or directory
1> SevenZipArchive.cpp
1> c:\7zip-cpp-master\7zpp\UsefulFunctions.h(5): fatal error C1083: Cannot open include file: '7zip/Archive/IArchive.h': No such file or directory
1> PropVariant.cpp
1> c:\7zip-cpp-master\7zpp\PropVariant.h(7): fatal error C1083: Cannot open include file: 'Common/MyTypes.h': No such file or directory
1> OutStreamWrapper.cpp
1> c:\7zip-cpp-master\7zpp\OutStreamWrapper.h(4): fatal error C1083: Cannot open include file: '7zip/IStream.h': No such file or directory
1> OutMemStream.cpp
1> c:\7zip-cpp-master\7zpp\OutMemStream.h(5): fatal error C1083: Cannot open include file: '7zip/IStream.h': No such file or directory
1> MemExtractCallback.cpp
1> c:\7zip-cpp-master\7zpp\MemExtractCallback.h(6): fatal error C1083: Cannot open include file: '7zip/Archive/IArchive.h': No such file or directory
1> InStreamWrapper.cpp
1> c:\7zip-cpp-master\7zpp\InStreamWrapper.h(4): fatal error C1083: Cannot open include file: '7zip/IStream.h': No such file or directory
1> ArchiveUpdateCallback.cpp
1> c:\7zip-cpp-master\7zpp\ArchiveUpdateCallback.h(6): fatal error C1083: Cannot open include file: '7zip/Archive/IArchive.h': No such file or directory
1> ArchiveOpenCallback.cpp
1> c:\7zip-cpp-master\7zpp\ArchiveOpenCallback.h(6): fatal error C1083: Cannot open include file: '7zip/Archive/IArchive.h': No such file or directory
1> ArchiveExtractCallback.cpp
1> c:\7zip-cpp-master\7zpp\ArchiveExtractCallback.h(6): fatal error C1083: Cannot open include file: '7zip/Archive/IArchive.h': No such file or directory
1> Generating Code...
1>Done building target "ClCompile" in project "7zpp.VS2017.vcxproj" -- FAILED.

dll

Is there a way to load the dll into memory without actually needing to ship it with the binary?

Encrypt filenames

Hi,
I was able to set a password using the compressor. but it seems it does not encrypt the file names. is this possible?

Thanks!

Lister is broken

The lister class is currently broken. I'm trying to figure out what needs to be fixed to make it work.

Linux Support

I have the need to get some UE4 zip library stuff on android and started looking into compiling 7zip-cpp for linux. There was an immediate roadblock with the COM stuff. I've hacked around for several hours, trying a few COM wrappers. It's starting to feel like a fool's errand.

I wanted to see if you ever had a super high-level plan of how to support other platforms or maybe this was meant to only ever be a windows lib? I'm guessing most likely using raw LZMA sdk and trying to reach parity with existing interface and callbacks is the long road.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.