libzip is a widely used open source library for creating, writing and processing zip files
Questions tagged [libzip]
82 questions
0
votes
0 answers
Creation archive problem using libzip and C
Im trying to create program for building archives using libzip and C. Function below must create archive from files. Name of directory with files and name of output file passed as a command line arguments. Code works without any errors. The main…

Jon Aaron
- 3
- 2
0
votes
1 answer
Could not open password protected zip archive
I was creating a zip archive with php 7.4 (lib-zip version 1.6.1) without any problems.
Now I try to protect these zip archive with a password. Not just for encrypting with php, but in general. I found this tutorial. It does what it should, but I…

freshp
- 525
- 5
- 20
0
votes
0 answers
How to use std::istream instead of file with libzip?
I have code like this:
#include
void main()
{
int err;
struct zip* zip_file = zip_open("some_file.zip", 0, &err);
struct zip_file* file_in_zip = zip_fopen_index(zip_file_, 0, 0);
char buff[1024];
std::ofstream…
0
votes
1 answer
Unable to read archive files from an archive created from code
I am pushing files to an archive using libzip / c++ and so far so good. I can open the created archive with the WinRar Windows client, unpack the archive and read every file without a problem.
But when attempting to read some files (the ones in…

PinkTurtle
- 6,942
- 3
- 25
- 44
0
votes
1 answer
how can I install zip extension in php:5.4-apache docker
Problem
I want to setup a docker based development environment for a PHP application.
This environment shall mimic the production server.
This application wants to export an xlsx file and throws Fatal error: Class 'ZipArchive' not found in…

Bernhard
- 686
- 8
- 20
0
votes
1 answer
CMake: Can't link simple project that uses shared zlib wrapper library
In my situation I have two CMake projects (built using MSYS Makefiles if that matters):
One is a shared library that uses Zlib and Libzip to provide zipping functionality to the library user, let's call it mylib.
Another is an app that uses mylib…

david
- 292
- 5
- 20
0
votes
1 answer
Libzip - Archive error always returns ZIP_ER_OK, even if archive fails to be created
I'm using a switch statement to check the value of the error code in the libzip zip archive that I'm creating. However, it never seems to return anything other than 0, even when I cause it to fail on purpose. (I'm causing it to fail by trying to…

Remixt
- 597
- 6
- 28
0
votes
1 answer
Excel Library for C++ - XLSX I / O - cannot get it to work
I am writing a program which involves the user populating an excel settings sheet.
I then read it and the values feed into the program.
There seem to be a few libraries out there for reading / writing xlsx files - I settled on XLSX I / O
I am quite…

Erix Liechstenstein
- 41
- 6
0
votes
1 answer
can't create zip file with libzip C++
I'm tring create zip file with libzip library.
list ListOfFiles;
ListOfFiles.push_back("file1");
ListOfFiles.push_back("file2");
ListOfFiles.push_back("file3");
...
createZip(const char* destination)
{
int err;
zip *archive =…

gomess
- 83
- 1
- 8
0
votes
0 answers
How to link libzip/zlib libraries through the terminal in Ubuntu 14.04?
I'm trying to compile source code that uses libzip to extract files.
I'm able to compile the code in Code Blocks with no issue however when I try to compile the code in the terminal I get the error listed below. I need it to run in the terminal.
I…

JonSnow
- 67
- 3
- 14
0
votes
0 answers
Reading from encrypted zips in Haskell using LibZip
I try to open encrypted zip file and then to write it again. Unfortunately I keep getting "Read error" and don't understand why. I find the documentation of LibZip for Haskell hard to follow so would be grateful for any explanation on how it works.…

Kanes115
- 119
- 6
0
votes
1 answer
How to include libzip library in Xcode project?
Currently i am doing unziping a zip file program using libzip library,
following this link - http://www.nih.at/libzip/index.html .
i want to include the library and frame work in my xcode project .
From the demo project that has give in their site…
0
votes
1 answer
Libzip - Error: Error while opening the archive : no error
I'm trying to find out the solution to solve a problem;
In fact, i'm writing my own tool to make saves using libzip in C++ to compress the files.
Absolutly not finished but i wanted to make some tests, then i do and obtain a "funny" error from the…

eldten
- 3
- 1
0
votes
1 answer
Compiling libzip on Mac: Undefined symbols for architecture x86_64
I've been learning C++ and have decided to try to create a simple file reader using libzip on archive files (e.g. Word).
I’ve recently installed libzip on my Macbook using brew but I seem to keep on getting the following issue whenever I try to…

Calculus5000
- 427
- 6
- 17
0
votes
1 answer
zip_open gives an unknown error
I'm using libzip but I can't even use it. I'd like to create a new zip file.
zip_open("/path/to/my.zip", ZIP_CREATE, &err)
gives me this error code : -858993460
I compiled zlib and then libzip myself successfully (since I get no error) for both…

Spiralwise
- 338
- 3
- 18