Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P2: Important
-
Resolution: Done
-
Affects Version/s: 5.13.0 Beta3
-
Fix Version/s: 5.13.1, 5.14.0 Alpha
-
Component/s: QPA: Wayland
-
Labels:
-
Environment:Arch Linux x86_64, Qt 5.13.0beta3 from Arch Linux's [kde-unstable] repository.
-
Platform/s:
-
Commits:f4636b934f90b2a07b09f1925a86440cf1944d08 (qt/qtwayland/5.13)
Description
In Qt 5.13 I can't use CMake to build projects using Qt5WaylandClient. For example, the example project in qtwayland fails to configure. Here are steps to reproduce:
git clone -b 5.13 https://github.com/qt/qtwayland
cd qtwayland/tests/auto/cmake/test_waylandclient
cmake .
Results in the following error:
CMake Error at /usr/lib64/cmake/Qt5WaylandClient/Qt5WaylandClientConfig.cmake:106 (find_package): Could not find a package configuration file provided by "Qt5LinuxAccessibilitySupport" (requested version 5.13.0) with any of the following names: Qt5LinuxAccessibilitySupportConfig.cmake qt5linuxaccessibilitysupport-config.cmake Add the installation prefix of "Qt5LinuxAccessibilitySupport" to CMAKE_PREFIX_PATH or set "Qt5LinuxAccessibilitySupport_DIR" to a directory containing one of the above files. If "Qt5LinuxAccessibilitySupport" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:6 (find_package)
Looks like the cause is that linuxaccessibility is an internal module [1], and CMake files are not generated for internal modules [2].
[1] https://github.com/qt/qtbase/blob/v5.13.0-beta3/src/platformsupport/linuxaccessibility/linuxaccessibility.pro#L5
[2] https://github.com/qt/qtbase/blob/v5.13.0-beta3/mkspecs/features/qt_module.prf#L115