libzip is a widely used open source library for creating, writing and processing zip files
Questions tagged [libzip]
82 questions
1
vote
1 answer
Creating ZIP archive compression level (libzip)
I am trying to compress files using libzip and I seem to succeed but I cannot seem to figure out a way to change the compression level (zip tool supports values from 1(fastest compression speed) to 9 (smallest archive)) which I must reimplement. Is…
user2026095
1
vote
1 answer
Jenkins Java compile causes Java crash
I've been constantly getting a crash in Java when I try to compile some Java code with Gradle in my Jenkins server. Anyone know any possible solutions? It seems like libzip has some kind of issue...
I'm using a Ubuntu server. Full error report:…

Calclavia
- 11
- 2
0
votes
0 answers
how to build delta-rs python for hdfs support
i would build delta-rs v0.10.1 with HDFS support. for this purpose i have costomized Cargo.toml file and add hdfs feature then building and installing it in environment using make install command.
features = ["azure", "gcs", "python", "datafusion",…

Mohammad Esmaeili
- 81
- 6
0
votes
0 answers
Can libzip reliably write in zip archives from buffers/memory (not files)?
I am creating an archive dynamically an need to write some binary data dynamically as file entries.
I am also using the extra_field API to add more metadata.
Unfortunately when I write using source_buffer the data written gets corrupted.
API calls…

Emanuele
- 1,408
- 1
- 15
- 39
0
votes
1 answer
Binary files get corrupted while unzipping with libzip
I was required to unzip .zip files in my Qt project. So I installed libzip. I wrote a function to unzip a .zip file given its location and destination directory path. The function is correctly able to unzip plain text files (like .json, .txt, and…

Manbir Judge
- 113
- 1
- 13
0
votes
0 answers
zlib linker error on Windows when building libzippp, libzip and zlib via cmake
I'm having strange behavior when trying to build and link libzippp (and zlib) with a library project on Windows.
The setup: There are two C++ cmake projects.
The first is a library project called ExampleProject.
ExampleProject depends on…

Monotomy
- 554
- 1
- 6
- 24
0
votes
0 answers
Cross compile libzip for windows
I am on linux and I can cross complie libzip I edited cmakeList and add the standard stuff
and I did not generate the .dll.a i used mingw32 I get only .a i need .dll.a
Host os :linux
Target:Windows
0
votes
1 answer
libzip zip_fread on image stops at null byte - corrupt images - c++
When trying to unzip an image file using libzip, I have run across the issue where in the image data, I hit a null byte and libzip zip_fread sees this as EOF and stops reading the file, resulting in a corrupted image. What is the best way to get…

Kevin
- 1
0
votes
1 answer
libzip: zip_name_locate() fails on specific filename, even trying all possible encoding combinations
I am trying to build a "failsafe" layer on top of libzip but libzip is giving me some trouble here.
First I add a file to my (empty) archive with zip_file_add(...). This has 3 possible user-defined encodings available. Then I try to locate the name…

PinkTurtle
- 6,942
- 3
- 25
- 44
0
votes
2 answers
How to add libzip as dependency in meson build system
I'm building a small app using gtk+-3.0 in Gnome Builder, but I want to use libzip for some functions. But apparently meson is not accepting to add libzip. See my snippet:
foo_deps = [
dependency('libzip', version: '>= 1.5.0'),
…

Vinícius A. Jorge
- 731
- 1
- 6
- 9
0
votes
1 answer
Building Libzip on MacOS with Cmake unable to find right package
I'm building libzip [version 1.7.3]. The package uses CMake.
I do the following as initial setup:
wget -c https://github.com/nih-at/libzip/releases/download/v1.7.3/libzip-1.7.3.tar.gz
tar -zxf libzip-1.7.3.tar.gz
cd libzip-1.7.3
mkdir build && cd…

ObiHill
- 11,448
- 20
- 86
- 135
0
votes
2 answers
How to write archive to disk that was created in memory?
I have a zip archive encrypted on disk. I read the file into a buffer, decrypt it (using some custom algorythm), and make a zip out of it in memory.
Now I can modify the archive but how do I write back the changes to disk ? Am I missing something ?…

PinkTurtle
- 6,942
- 3
- 25
- 44
0
votes
1 answer
How can I get zip_stat_t for large files
For small files I can get the the zip_stat_t information, but if its a file 40Mb big I can't.
zip_stat_t info;
zip_stat_index(zipfile, 544, ZIP_FL_ENC_GUESS, &info);
printf("%s\n", info.name);
eg printing info.name is segfaulting for large files eg…

Bret Joseph
- 185
- 8
0
votes
1 answer
What could be causing an unexpected_EOF error with libbzip2 readOpen function?
I'm following the bzip2 programming with libbzip2 instructions to make a script for compression/decompression, but I have run into issues with the reading step. Here's my code:
int decode = (argv[4][0]=='d');
FILE* f = fopen( argv[2], "rb" ); if(…
0
votes
1 answer
Installing libzippp library with cmake not working
Trying to install libzippp library in this project is not working for some reason, here is my project's CMakeLists.txt:
CMakeLists.txt
cmake_minimum_required(VERSION 2.8)
project(startProject)
set(Leptonica_DIR…

Alejandro Camba
- 978
- 10
- 25