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

egl and glx client buffer integration cmake targets defined twice

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • None
    • 5.8.0
    • QPA: Wayland
    • None
    • 712e7f6d96b00f1002a5f833f09ad465332967f0

    Description

      With latest 5.8 branch there are duplicate cmake targets for xcomposite egl and glx integration plugins.

      A software that finds Qt5 WaylandClient and WaylandCompositor cmake modules fails to build with the following error:

      CMake Error at /opt/qt5/lib/cmake/Qt5WaylandCompositor/Qt5WaylandCompositor_QWaylandXCompositeEglClientBufferIntegrationPlugin.cmake:2 (add_library):
        add_library cannot create imported target
        "Qt5::QWaylandXCompositeEglClientBufferIntegrationPlugin" because another
        target with the same name already exists.
      Call Stack (most recent call first):
        /opt/qt5/lib/cmake/Qt5WaylandCompositor/Qt5WaylandCompositorConfig.cmake:141 (include)
        /opt/qt5/lib/cmake/Qt5/Qt5Config.cmake:28 (find_package)
        CMakeLists.txt:80 (find_package)
      
      
      CMake Error at /opt/qt5/lib/cmake/Qt5WaylandCompositor/Qt5WaylandCompositor_QWaylandXCompositeGlxClientBufferIntegrationPlugin.cmake:2 (add_library):
        add_library cannot create imported target
        "Qt5::QWaylandXCompositeGlxClientBufferIntegrationPlugin" because another
        target with the same name already exists.
      Call Stack (most recent call first):
        /opt/qt5/lib/cmake/Qt5WaylandCompositor/Qt5WaylandCompositorConfig.cmake:141 (include)
        /opt/qt5/lib/cmake/Qt5/Qt5Config.cmake:28 (find_package)
        CMakeLists.txt:80 (find_package)
      

      The Qt5::QWaylandXCompositeEglClientBufferIntegrationPlugin and Qt5::QWaylandXCompositeGlxClientBufferIntegrationPlugin targets are defined twice for both Qt5WaylandClient and Qt5WaylandCompositor

      This makes building software that depends on QtWayland impossible with cmake.

      Attachments

        For Gerrit Dashboard: QTBUG-58491
        # Subject Branch Project Status CR V

        Activity

          People

            plfiorini Pier Luigi Fiorini
            plfiorini Pier Luigi Fiorini
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes