Solution found for MacOS and iOS.
It's might be working well for another platforms. I haven't tested it yet.
Every library that is using by libzip should be added manually to the QT project and if it's not by default in the system you need to build it like static. If there zlib - then add it manually, if there SSL - then add it manually, etc
The step-by-step guidance for building libzip published by me on Github
There are couple of strange things that I found (I don't know the cause of it):
In the directory where located library appeared couple of symlinks on the real shared library file when I am attaching it to QT project via symlinks it's not working, only direct original file attaching to project working well (it's mean important for attaching zlib from system folder). See the screenshot
[image: 7d3eb179-2d62-4daf-bf31-b8472b35cfbd.png]
The libzip library only working when you attaching it to QT Project like statical library (*.a), all of attempts of using like shared/dynamic libraray (*.dylib) have got failed, even it's installed like the operational system part.
Code from that works for me *.pro file:
macx {
LIBS += -lz.1
LIBS += -L$$PWD/libs/libzip/ -lzipstatic
INCLUDEPATH += $$PWD/libs/libzip
DEPENDPATH += $$PWD/libs/libzip
PRE_TARGETDEPS += $$PWD/libs/libzip/libzipstatic.a
}
ios {
LIBS += -lz.1
LIBS += -L$$PWD/libs/libzip/ -lzipstatic
INCLUDEPATH += $$PWD/libs/libzip
DEPENDPATH += $$PWD/libs/libzip
PRE_TARGETDEPS += $$PWD/libs/libzip/libzipstatic.a
}
SUPER-MEGA-HUGE (SMH) thanks to Thomas Klausner (one of authors of libzip). He has been helping me to solve this trouble.