On 6/11/26 11:56 AM, Sebastiaan Couwenberg wrote:
On 6/11/26 11:39 AM, Sebastiaan Couwenberg wrote:
On Thu, 11 Jun 2026 17:09:00 +0800 =?UTF-8?B?eGlhbyBzaGVuZyB3ZW4o6IKW55ub5paHKQ==?= 
<[email protected]> wrote:
Is <QTextCodec> exist in qt6?

https://doc.qt.io/qt-6/qtextcodec.html suggests it's part of the Qt5 
compatibility APIs,

In Debian it's provided by qt6-5compat-dev:

  $ apt-file search QTextCodec
  qt6-5compat-dev: /usr/include/x86_64-linux-gnu/qt6/QtCore5Compat/QTextCodec
libquazip1-qt6-dev pulls in qt6-5compat-dev, and libquazip1-qt6-1.7 depends on 
libqt6core5compat6, that seems fine.

A workaround for the FTBFS is to add the include path per the attached patch.

The underlying issue the missing Requires in the quazip pkg-config file, this 
is known upstream:

 https://github.com/stachenov/quazip/issues/255

My approach to fix that is attached, the upstream PR might be better.

Kind Regards,

Bas

--
 PGP Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1
Description: Add Qt6Core5Compat to pkgconfig Requires for QTextCodec.
Author: Bas Couwenberg <[email protected]>
Bug-Debian: https://bugs.debian.org/1139463

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -82,7 +82,11 @@ if(QUAZIP_QT_MAJOR_VERSION EQUAL 6)
     set(QUAZIP_QT_ZLIB_HEADER_COMPONENT ZlibPrivate)
     set(QUAZIP_LIB_LIBRARIES Qt6::Core )
     set(QUAZIP_TEST_QT_LIBRARIES Qt6::Core Qt6::Network Qt6::Test)
-    set(QUAZIP_PKGCONFIG_REQUIRES "zlib, Qt6Core")
+    if(QUAZIP_ENABLE_QTEXTCODEC)
+        set(QUAZIP_PKGCONFIG_REQUIRES "zlib, Qt6Core, Qt6Core5Compat")
+    else()
+        set(QUAZIP_PKGCONFIG_REQUIRES "zlib, Qt6Core")
+    endif()
 elseif(QUAZIP_QT_MAJOR_VERSION EQUAL 5)
     find_package(Qt5 REQUIRED COMPONENTS Core
             OPTIONAL_COMPONENTS Network Test)

Reply via email to