Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-76042

Can't use CMake to build projects using Qt5WaylandClient

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.13.1, 5.14.0 Alpha
    • 5.13.0 Beta3
    • QPA: Wayland
    • Arch Linux x86_64, Qt 5.13.0beta3 from Arch Linux's [kde-unstable] repository.
    • Linux/Wayland
    • 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

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            plfiorini Pier Luigi Fiorini
            yan12125 yan12125
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes