- Package:
- qt6-base-dev
- Source:
- qt6-base
- Description:
- Qt 6 base development files
- Submitter:
- Hefee
- Date:
- 2025-04-27 19:15:02 UTC
- Severity:
- important
If I just use in CMake "find_package(Qt6 COMPONENTS Core REQUIRED)" I end up with the bug: "Targets not yet defined: Qt::CorePrivate" Also if I add qt6-base-private-dev explicitly to the Build-Depends list, I still get the same error. That's why it seems like a bug inside qt6-base. See the build of qtkeychain: https://salsa.debian.org/owncloud-team/qtkeychain/-/jobs/2496539#L1939 https://salsa.debian.org/owncloud-team/qtkeychain/-/pipelines/351397 and the correspondig CMakeLists.txt: https://salsa.debian.org/owncloud-team/qtkeychain/-/blob/master/CMakeLists.txt and relevant Debian files: https://salsa.debian.org/owncloud-team/qtkeychain/-/blob/work/hefee/qt6/debian/control https://salsa.debian.org/owncloud-team/qtkeychain/-/blob/work/hefee/qt6/debian/control Regards, hefee
In meanwhile we found a workaround: https://salsa.debian.org/owncloud-team/qtkeychain/-/merge_requests/3 aka: Add qtbase5-private-dev, qt6-tools-dev, qt6-tools-dev-tool, libgcrypt20- dev and qt6-l10n-tools to BDs. and no need to add qt6-base-private-dev. Fedora 34 has the same issue, when building qtkeychain: https://github.com/frankosterfeld/qtkeychain/issues/202 Regards, hefee
Control: affects 1006230 libqgpgmeqt6-15 Hello, I have also been hit by this when trying to build libqgpgmeqt6-15 from the recently split-off https://dev.gnupg.org/source/gpgmeqt.git QGPME build gpgme wrappers for Qt5 and and Qt6, I ended up adding qt6-base-dev qtbase5-dev qtbase5-private-dev instead of just qt6-base-dev qtbase5-dev cu Andreas
Hey, Unfortunately the root cause is a CMake change that showed this wrong usage of private targets in Qt. Qt is aware of this issue and there are attempts to fix this (maybe it is already fixed in Qt upstream; I havn't followed on that). But so far we need to wait for a fixed Qt version (or a backport) in order to remove the -private-dev packages again. Regards, hefee
Hej, On Tue, 18 Feb 2025 19:08:05 +0100 Hefee <hefee@debian.org> wrote: [...] It seems this is https://bugreports.qt.io/browse/QTBUG-87776 which should be (mostly) fixed in Qt 6.9, but trixie will ship Qt 6.8.