stachenov / quazip

Qt/C++ wrapper over minizip
Other
580 stars 233 forks source link

Compilation Quazip Qt6.4 (mingw32) on Windows #172

Closed geustache closed 1 year ago

geustache commented 1 year ago
          Hi @geustache and @Isarhamster, I'll describe how I solve the issue.
  1. Download package called mingw-w64-x86_64-zlib from MSYS2 repo. Here: https://packages.msys2.org/package/mingw-w64-x86_64-zlib
  2. Extract the downloaded file.
  3. You need these files from extracted archive:
    /mingw64/bin/zlib1.dll
    /mingw64/include/zconf.h
    /mingw64/include/zlib.h
    /mingw64/lib/libz.a
    /mingw64/lib/libz.dll.a

4.Now you need to copy these files to Tools\mingw directory in your Qt installation. For example, C:\Qt\Tools\mingw1120_64. _Here mingw1120_64 is the version used with Qt 6.4.2 it maybe different for you if you're using different version._

  1. Here is the list for copying files:
    
    /mingw64/bin/zlib1.dll   ---->  C:\Qt\Tools\mingw1120_64\bin

/mingw64/include/zconf.h ----> C:\Qt\Tools\mingw1120_64\include /mingw64/include/zlib.h ----> C:\Qt\Tools\mingw1120_64\include

/mingw64/lib/libz.a ----> C:\Qt\Tools\mingw1120_64\lib /mingw64/lib/libz.dll.a ----> C:\Qt\Tools\mingw1120_64\lib



Notes:

- If you're using `QUAZIP_USE_QT_ZLIB` disable it, and re-run cmake. (My advice is that, delete everything generated during build and re-launch.)
- Direct link to zlib archive: https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-zlib-1.2.13-3-any.pkg.tar.zst

_Originally posted by @fxdeniz in https://github.com/stachenov/quazip/issues/166#issuecomment-1459071552_