Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
None
-
5.8.0
-
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 |
183752,2 | Deduplicate xcomposite-egl and xcomposite-glx plugin class name | 5.8 | qt/qtwayland | Status: MERGED | +2 | 0 |