| Summary: | Could not find a package configuration file provided by "Qt5X11Extras" | ||
|---|---|---|---|
| Product: | [Developer tools] kdesrc-build | Reporter: | Andreas Bontozoglou <a.bontozoglou> |
| Component: | general | Assignee: | Michael Pyne <mpyne> |
| Status: | VERIFIED NOT A BUG | ||
| Severity: | normal | CC: | butirsky, d0048, frank-fischer, nate, schweinefilet, travier |
| Priority: | NOR | ||
| Version First Reported In: | Git | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | my latest logs | ||
I have the same problem on Debian Buster. It comes with Qt 5.11 so I need to compile Qt along kdesrc-build, but I get exactly the same error message. I followed https://community.kde.org/Get_Involved/development and have the same problem using a clean environment and running "kdesrc-build --stop-on-failure dolphin". System: Operating System: Kubuntu 20.04 KDE Plasma Version: 5.18.5 KDE Frameworks Version: 5.68.0 Qt Version: 5.12.8 Kernel Version: 5.4.0-51-generic I'm afraid this is a bug tracker which is not well suited for handling setup or support questions. I would recommend asking in the kde-devel room for help with kdesrc-build. See https://community.kde.org/Get_Involved/development#Communicate_with_the_team Have the same problem on Fedora 33, if anyone found the solution, please tell. I'm not sure it's kdesrc-build problem, perhaps rather Qt dependency/configuring issue. I think we should update the Dev Wiki afterwards, as it seems common. I suspect the reason is this qtConfig(xcb) check, not sure how to debug it:
⬢[bam@toolbox qtx11extras]$ cat /home/bam/kde/src/Qt5/qtx11extras/src/src.pro
TEMPLATE = subdirs
QT_FOR_CONFIG += gui-private
qtConfig(xcb) {
SUBDIRS += x11extras
}
For anyone faced this, I think sensitive code is here:
$ cat ~/kde/src/Qt5/qtx11extras/src/src.pro
TEMPLATE = subdirs
QT_FOR_CONFIG += gui-private
qtConfig(xcb) {
SUBDIRS += x11extras
}
So one need to make sure "xcb" feature is present.
How to check this? Well, I wish I know for myself :)
The relevant information can be found here:
https://wiki.qt.io/Building_Qt_5_from_Git
https://doc.qt.io/qt-5/linux-requirements.html
I also ran into this on Opensuse Tumbleweed when trying to build kwin. `libqt5-qtx11extras-devel` is already installed, and `/usr/lib64/cmake/Qt5X11Extras/Qt5X11ExtrasConfig.cmake` is present. I am confused why cmake still complains not finding them. (In reply to d0048 from comment #7) > I also ran into this on Opensuse Tumbleweed when trying to build kwin. > > `libqt5-qtx11extras-devel` is already installed, and > `/usr/lib64/cmake/Qt5X11Extras/Qt5X11ExtrasConfig.cmake` is present. I am > confused why cmake still complains not finding them. Well I figured it out. Seems like Qt need to be built with system xcb libraries. Installing all the xcb-*-devel packages, and rebuild qt solved this. |
Created attachment 130399 [details] my latest logs SUMMARY Hi all, today I attempted to install kde from source and picked 2-3 tasks/bugs that I could potentially help with. However, I am stuck at step 1 - I fail to build dolphin (even earlier - kwindowsystem). I know I am on a not officially supported platform (Kubuntu 18.04) and I have built Qt5 from source/git but I am reporting this anyway - feel free to close as invalid. The error I get is in qt5x11extras while configuring kwindowsystem: ``` CMake Error at /home/urban/kde/qt5/lib/cmake/Qt5/Qt5Config.cmake:28 (find_package): Could not find a package configuration file provided by "Qt5X11Extras" with any of the following names: Qt5X11ExtrasConfig.cmake qt5x11extras-config.cmake Add the installation prefix of "Qt5X11Extras" to CMAKE_PREFIX_PATH or set "Qt5X11Extras_DIR" to a directory containing one of the above files. If "Qt5X11Extras" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:69 (find_package) -- Configuring incomplete, errors occurred! ``` STEPS TO REPRODUCE 1. Clean development environment 2. kdesrc-build kwindowsystem OBSERVED RESULT - Qt5 builds successfully (on branch origin/5.14) - extra-cmake-modules also passes - kwindowsystem fails at configuration - Other packages succeed (a mixture or pass/fail but the above is the first to fail) EXPECTED RESULT - SOFTWARE/OS VERSIONS kdesrc-build: on master (f627779) Qt Version: origin/5.14 Host: $ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=18.04 DISTRIB_CODENAME=bionic DISTRIB_DESCRIPTION="Ubuntu 18.04.4 LTS" $ uname -a Linux urban-asus 4.15.0-96-generic #97-Ubuntu SMP Wed Apr 1 03:25:46 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux ADDITIONAL INFORMATION From what I understand (very rusty in cmake and tbh was never an expert) qtx11extras build but do not generate any libs or cmakes as I would expect: $ ls build/Qt5/qtx11extras/ -R build/Qt5/qtx11extras/: Makefile src build/Qt5/qtx11extras/src: Makefile Again, I know this might be invalid/unsupported setup so feel free to close