getnamo / 7zip-cpp Goto Github PK
View Code? Open in Web Editor NEWFork of SevenZip++ for modern builds.
License: Other
Fork of SevenZip++ for modern builds.
License: Other
I think it is now possible to add appveyor as a testing framework.
The lister class is currently broken. I'm trying to figure out what needs to be fixed to make it work.
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.
Does this library support password protected archive extraction? I didn't find related API.
Hi, I am using your project to extract my archive. But I found that GetOrigSizes would return incorrect size when package contains large file like 10GB. This can be fixed in UsefulFunctions.cpp line 173, change intVal to uhVal. Then it will work for large archive contains large file. ๐
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
Rar format compression and decompression cannot be used .
Do you support the following issues in your library?
Code snippet are welcome. Thanks in advance!
Is there a way to load the dll into memory without actually needing to ship it with the binary?
I'm using this library in my project as a plugin, so far everything is working fine except auto-detection for specific filetypes like 7z.
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.
hello, how can I use functions of 7zip in VS2019(Windows) ?
tar.gz is recursive archive
tar > gz
present tar is extracted by name [Content] file
it wasn expected result for everyone
how i solved?
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.
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
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!
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.