Public bug reported:
With qt6-pdf-dev (version 6.8.3+dfsg-0ubuntu1) installed in Kubuntu
25.04, running cmake to build a Qt6 program that requires QtPdf fails
because of a missing file.
CMakeFile.txt contains the line:
find_package(Qt6 COMPONENTS Pdf REQUIRED)
Running cmake (on that CMakeFile.txt) fails at that line:
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt6Pdf/Qt6PdfConfig.cmake:190
(include):
include could not find requested file:
/usr/lib/x86_64-linux-
gnu/cmake/Qt6Pdf/Qt6PdfVersionlessAliasTargets.cmake
Expected: Installing qt6-pdf-dev should provide all files required for
using QtPdf with cmake.
In my case, creating the requested file as empty file (sudo touch
/usr/lib/x86_64-linux-gnu/cmake/Qt6Pdf/Qt6PdfVersionlessAliasTargets.cmake)
seems to fix the problem.
The code in /usr/lib/x86_64-linux-gnu/cmake/Qt6Pdf/Qt6PdfConfig.cmake:190
indicates that cmake chooses one of Qt6PdfVersionlessAliasTargets.cmake (not
existing) and Qt6PdfVersionlessTargets.cmake (provided by qt6-pdf-dev).
Naive idea: Maybe the missing file should be listed in debian/qt6-pdf-
dev.install?
** Affects: qt6-webengine (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2109431
Title:
Missing CMake file in qt6-pdf-dev package (Ubuntu 25.04)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qt6-webengine/+bug/2109431/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs