🌐
GitHub
github.com › kiyolee › libzip-win-build
GitHub - kiyolee/libzip-win-build: libzip Windows build with Visual Studio. · GitHub
libzip Windows build with Visual Studio. Contribute to kiyolee/libzip-win-build development by creating an account on GitHub.
Starred by 67 users
Forked by 20 users
Languages   C
Software library for reading, creating, and modifying zip archives
Appveyor Build status
libzip is an open-source library for handling zip archives. It is written in portable C and can thus be used on multiple operating systems. It is based on zlib. It is used … Wikipedia
Factsheet
libzip
Developers Dieter Baron, Thomas Klausner
Stable release 1.11.4
/ 23 May 2025; 12 months ago (23 May 2025)
Factsheet
libzip
Developers Dieter Baron, Thomas Klausner
Stable release 1.11.4
/ 23 May 2025; 12 months ago (23 May 2025)
🌐
Libzip
libzip.org
libzip - libzip
libzip has been continuously developed since 2005. It is efficient, small, and flexible. It is usable on Linux, macOS, Windows, and many other operating systems.
Top answer
1 of 8
29

Edit:

Before starting on the answer provided here, it appears that this may no longer be an issue going by @Thomas Klausner's answer below.


The following should get you a VS10 solution:

  1. If you've not already done so, install CMake

  2. Download and extract zlib to e.g. C:\devel. The download links are about halfway down the homepage. Currently this provides zlib version 1.2.7.

    • To work around this CMake bug which affects 64-bit Windows only, add

      if(CMAKE_SIZEOF_VOID_P EQUAL 8 AND MSVC)
        set_target_properties(zlibstatic PROPERTIES STATIC_LIBRARY_FLAGS "/machine:x64")
      endif()
      

      to the end of C:\devel\zlib-1.2.7\CMakeLists.txt

  3. Download and extract libzip to e.g. C:\devel

  4. In a VS10 command prompt, cd C:\devel\zlib-1.2.7

  5. mkdir build && cd build

  6. cmake .. -G"Visual Studio 10" -DCMAKE_INSTALL_PREFIX="C:\devel\installed\zlib" This sets the install path to C:\devel\installed\zlib rather than the default C:\Program Files\zlib. For 64-bit Windows, use "Visual Studio 10 Win64" as the -G parameter.

  7. msbuild /P:Configuration=Debug INSTALL.vcxproj

  8. msbuild /P:Configuration=Release INSTALL.vcxproj

  9. cd C:\devel\libzip-0.10.1

  10. mkdir build && cd build

  11. cmake .. -G"Visual Studio 10" -DCMAKE_PREFIX_PATH="C:\devel\installed\zlib" Set the path to wherever you installed zlib so that CMake can find zlib's include files and libs. Again, for 64-bit Windows, use "Visual Studio 10 Win64" as the -G parameter.

This should result in C:\devel\libzip-0.10.1\build\libzip.sln. It looks like there are a few POSIX-specific problems in the code, but they should hopefully be fairly easy to resolve (e.g. in zipconf.h #include <inttypes.h> needs replaced with #include <stdint.h>; there are some snprintf calls needing replaced e.g. with _snprintf).

2 of 8
4

I can't comment, so just in addition to Fraser's answer: In the last days, libzip's latest repository version should compile on VS without additional patches. Please try it out and let the developers know if parts are still missing.

🌐
Fossies
fossies.org › linux › libzip › examples › windows-open.c
libzip: examples/windows-open.c | Fossies
June 28, 2022 - 1 /* 2 windows-open.c -- open zip archive using Windows UTF-16/Unicode file name 3 Copyright (C) 2015-2022 Dieter Baron and Thomas Klausner 4 5 This file is part of libzip, a library to manipulate ZIP archives.
🌐
Libzip
libzip.org › documentation › zip_source_win32w.html
zip_source_win32w · libzip
zip_source_win32w, zip_source_... zip_error_t *error); The functions zip_source_win32w() and zip_source_win32w_create() create a zip source on Windows using a Windows Unicode name....
🌐
GitHub
github.com › winlibs › libzip
GitHub - winlibs/libzip: C library for reading, creating, and modifying zip archives · GitHub
libzip has been continuously developed since 2005. It is efficient, small, and flexible. It is usable on Linux, macOS, and Windows and many other operating systems.
Starred by 10 users
Forked by 2 users
Languages   C 89.8% | CMake 9.5%
🌐
GitHub
github.com › nih-at › libzip
GitHub - nih-at/libzip: A C library for reading, creating, and modifying zip archives. · GitHub
libzip has been continuously developed since 2005. It is efficient, small, and flexible. It is usable on Linux, macOS, and Windows and many other operating systems.
Starred by 1K users
Forked by 314 users
Languages   C 90.3% | CMake 9.1%
🌐
GitHub
github.com › sailfish009 › libzip-win-build
GitHub - sailfish009/libzip-win-build: libzip Windows build with Visual Studio.
libzip Windows build with Visual Studio. Contribute to sailfish009/libzip-win-build development by creating an account on GitHub.
Author   sailfish009
Find elsewhere
🌐
GitHub
github.com › iamthatian › libzippp-windows
GitHub - iamthatian/libzippp-windows: C++ wrapper for libzip · GitHub
Download the libzip-<version>-windows-ready_to_compile.zip file from the release and extract it somewhere on your system.
Author   iamthatian
🌐
Libzip
libzip.org › download
Download - libzip
libzip · A C library for reading, creating, and modifying zip archives. Current version is 1.11.4 · The current release: libzip-1.11.4.tar.xz ·
🌐
Libzip
libzip.org › documentation
Documentation · libzip
zip_source_win32w — create data source from a Windows Unicode file name · zip_source_win32w_create — create data source from a Windows Unicode file name · zip_source_window — create zip data source overlay · zip_source_window_create — create zip data source overlay ·
🌐
GitHub
github.com › nih-at › libzip › blob › main › INSTALL.md
libzip/INSTALL.md at main · nih-at/libzip
If they are not found, the corresponding features will be disabled, but libzip will still build and work. How to install the dependencies depends on your operating system. On Linux, you can usually install them via your package manager. On macOS, you can use Homebrew or Mac Ports. On Windows, you ...
Author   nih-at
🌐
Stack Overflow
stackoverflow.com › questions › 19678880 › libzip-windows-compilation-for-libraries
libzip Windows compilation for libraries - Stack Overflow
I need libzip.lib .h to use libzip in other projects. So I followed libzip with Visual Studio 2010 and all is fine until step 11. In fact, I open C:\devel\libzip-0.10.1\build\libzip.sln, execute "
🌐
Libzip
libzip.org › documentation › libzip.html
libzip · libzip
The zip format requires the use of forward slash (‘/’) as directory separator. Since backslash (‘\’) can be part of a valid file name on Unix systems, libzip does not automatically convert them, even on Windows.
🌐
DLLMe
dllme.com › dll › files › libzip
libzip.dll - Free DLL Download | DLLme.com
libzip.dll is a DLL file (Dynamic Link Library) used by Windows programs to share code and resources.
🌐
GitHub
github.com › ctabin › libzippp
GitHub - ctabin/libzippp: C++ wrapper for libzip · GitHub
Download the libzippp-<version>-windows-ready_to_compile.zip file from the release and extract it somewhere on your system.
Starred by 454 users
Forked by 97 users
Languages   C++ 86.8% | CMake 5.9% | Makefile 4.5% | Batchfile 2.8%
🌐
Libzip
libzip.org › news
News · libzip
Improve check for GetSecurityInformation availability on Windows. ... Fix performance regression in zip_stat introduced in 1.11. ... Stop searching after finding acceptable central directory, even if it contains inconsistencies. Only write Zip64 EOCD if fields don’t fit in normal EOCD. Previously libzip ...
🌐
NuGet
nuget.org › packages › libzip-c
NuGet Gallery | libzip-c 1.11.3.1
This library was built from https://github.com/nih-at/libzip for uwp-arm64, uwp-win32, uwp-x64, windows-arm64, windows-win32 and windows-x64.