libzip is a widely used open source library for creating, writing and processing zip files
Questions tagged [libzip]
82 questions
1
vote
1 answer
I am unable to extract an executable correctly with libzip
I'm trying to extract an executable file from a zip archive using the code below but for some reason it is not outputting the file to disk correctly. When I try to run the the extracted file I get an error "This app can't run on your PC" The…

xadec4
- 11
- 1
1
vote
0 answers
How do I link to LibZip?
I installed libzip on ubuntu using brew: brew install libzip. That seemed to have worked and I can see it in the Cellar. Running brew link libzip reports that it's already linked.
However, when trying to install a package that requires it…

user592419
- 5,103
- 9
- 42
- 67
1
vote
0 answers
Reading a .tiff file in c from inside zip
I have multiple tiff images stored inside a zip file and would like to read their pixel values in c. I am very new to c so please forgive the dodgy code. I have got to the point where I have a char * with the contents of the tiff file but can't seem…

lac
- 755
- 10
- 19
1
vote
1 answer
Libzip: How do I zip a folder that has files within?
I am trying to find out a way to zip a folder with files inside it with libzip. To clear things a bit, I technically can zip it, the problem is, when I try to unzip it with libzip as well, it crashes. Part of the reason is, I believe, the fact that…

CatalinC
- 77
- 10
1
vote
0 answers
Unresolved External symbol __imp__zip_open with libzip (LNK2001)
I recently compiled libzip (and zlib) statically on windows 10 and i'm playing with it on visual Studio 2017.I followed instructions on this thread,adapted it a bit to build with VS2017,and modified CMakelists.txt to build the library statically:
I…

EinderJam
- 417
- 1
- 6
- 20
1
vote
2 answers
zlib-1.2.11 is "too old" - compiling libzip-1.3.0 wants 1.1.2
I'm trying to compile libzip-1.3.0 on Windows 10 using cmake and MSVC2017.
I've successfully compiled that latest zlib (1.2.11), but when I try to compile libzip, I get told that: ZLIB version too old, please install at least v1.1.2
My zlib.h…

HorusKol
- 8,375
- 10
- 51
- 92
1
vote
1 answer
Undefined reference to static library methods inside another static library
After failing to install a C++ libzip wrapper named libzippp because of a broken Cmake, I decided to compile/link it myself as it's tiny enough.
Problem is that this lib has two dependencies, zlib and libzip. So I Cmaked those two and proceeded…

A. Delran
- 517
- 2
- 9
1
vote
1 answer
Cpp force write zip using libzip
I am using the header zip.hpp (can be found here https://markand.bitbucket.io/libzip/index.html or here http://hg.markand.fr/libzip/file) to zip some files.
To remove the raw files afterwards, I use remove("myfile.txt").
Apparently, zip.hpp zips…

David
- 9,216
- 4
- 45
- 78
1
vote
1 answer
Unzipping with libzip loses file metadata
I have a zip file created with another application (written in Java) that compresses files using deflate method into one zip file, I verified that information like "last modified" wasn't modified to the current date, and when unzipping with Ubuntu's…

adnan_e
- 1,764
- 2
- 16
- 25
1
vote
1 answer
libzip external library inclusion in xcode project
Currently I am including an external library in my xcode project. I have included the libraries manually in my project, so I am able to get all the library function. There is no any compile time errors, but when I am running I am getting runtime…
1
vote
1 answer
How to decompress pbzip2 data in memory buffer by using libbz2 library in C++
I have a working version of decompressing bzip2 data where I call the bz2_bzdecompress API. It goes something like this
while (bytes_input < len) {
isDone = false;
// Initialize the input buffer and its length
size_t in_buffer_size =…

VictorCreator
- 724
- 1
- 7
- 17
1
vote
2 answers
Symbolic links in libzip
I'm using libzip in a c++ application for Linux that will need to be able to zip/unzip directories containing symbolic links. I want to add the link itself without following it. Reading out the link with readlink() and adding it to the zip archive…

Sander
- 861
- 7
- 15
1
vote
1 answer
libzip function to find index of filename doesn't work c++
I started learning libzip today everything is going great, it's just that I can't get the zip_name_locate to work and I can't find any tutorials/examples/documentation that explains it(well the documentation does but I can't get it to work).…

v_johan
- 470
- 3
- 17
1
vote
3 answers
Libzip zip_dir_add from manual not declared - C/C++
I am quite new to C/C++ programming so please take that into account.
Problem :
When using the libzip library, some of the functions descibed on the manual are said to be not declared in the scope when compiling.
I read this tutorial (in french…

M0rkHaV
- 432
- 1
- 4
- 16
1
vote
1 answer
APK Assets not loaded on Kindle Fire HD
I have developed an App for the Amazon Kindle Fire HD.
While distributing I got a report from amazon that its not running on almost all Kindle devices and a blackscreen is displayed. They send me a logcat log file and I found out that it's not…

Bastl
- 883
- 2
- 10
- 27