Solved QuaZip - Undefined Reference
-
@mrjj Thanks but I meant from memory, not into memory.
-
@FluentCoding
if you mean
Can i add a buffer to the zip file as was it a file then yes :)auto bytes = QByteArray::fromRawData(reinterpret_cast<const char *>(memory), int(fileSize32Bit)); zip_entry_write(zip, bytes, fileSize32Bit);
-
@mrjj Alright - (hopefully the) last question: How can I create zip_t object without
zip_open
, so that i only usezip_entry_write
to add the buffer? Should I just create an object of the structzip_t
? Also, should I replacefileSize32Bit
with the size of the QByteArray? -
Hi
I have not tried that but look in zip.c andstruct zip_t *zip_open(const char *zipname, int level, char mode) {
I think you can init it up as you like if you follow that code and the various modes + flags.
Yes, fileSize32Bit should be the QByteArray size.
-
Alright, but I think that I'll try another framework :/ It seems that I can run into problems - im neither sure if the zip files i wanna extract are 32 bit and maybe, I would need to extract a .rar or .7z later. I will give Zipper a try. But thank you very much for your support, @mrjj.
-
@FluentCoding
Hi
Ok. Please post if you find something good that is easy to compile on windows.
Also, could you pos the link for the zlib you used ?
I cannot find any MSI and Im still abit hooked on QuaZip :) -
Sure, @mrjj.
http://gnuwin32.sourceforge.net/packages/zlib.htm
This is the official download page. If you search good enough on the zlib homepage, you'll see that you have to download the binaries from this page.
-
@FluentCoding
So you took one of these ? -
@mrjj Yeah, the "Complete package, except sources" one.
-
@FluentCoding
Ok super. The DLL is from 2005.
Will try and see what visual studio thinks of it. -
@mrjj Alright.