Skip to content

[patch] suggestion: Make Qt5 variant build using Qt5 libs explicitly by adding `-DQUAZIP_QT_MAJOR_VERSION=5`.

Ahoj,

while the prebuilt Arch Linux packages quazip-qt5 and quazip-qt6 are fine, it is a bit tricky to build quazip-qt5 locally from this PKGBUILD since, when building in a Qt6 environment, it just builds for Qt6 and not for Qt5.

To make it explicit and more controlled which variant is built, I suggest to add -DQUAZIP_QT_MAJOR_VERSION=5 to the Qt5-variant build commands -- currently nothing is defined for that, and only for the Qt6 variant it is defined explicitly.

Here is a patch to the PKGBUILD that achieves this:

--- PKGBUILD.orig	2025-03-08 11:28:07.240020323 +0100
+++ PKGBUILD	2025-03-08 11:28:21.407266510 +0100
@@ -27,3 +27,4 @@
   cmake -B build5 -S $pkgbase \
-    -DCMAKE_INSTALL_PREFIX=/usr
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DQUAZIP_QT_MAJOR_VERSION=5
   cmake --build build5

This is expected to not break anything, but makes life easier.
I did use this locally.

Applies to: quazip, version 1.5-1.

Regards!

Edited by Drei Eck
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information