Bug 424663 - Could not find a package configuration file provided by "Qt5X11Extras"
Summary: Could not find a package configuration file provided by "Qt5X11Extras"
Status: VERIFIED NOT A BUG
Alias: None
Product: kdesrc-build
Classification: Developer tools
Component: general (show other bugs)
Version: Git
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Michael Pyne
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-25 19:59 UTC by Andreas Bontozoglou
Modified: 2022-02-11 09:38 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
my latest logs (14.61 KB, application/gzip)
2020-07-25 19:59 UTC, Andreas Bontozoglou
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Bontozoglou 2020-07-25 19:59:59 UTC
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
Comment 1 Frank Fischer 2020-09-17 21:24:21 UTC
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.
Comment 2 Lukas 2020-10-16 15:45:28 UTC
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
Comment 3 Nate Graham 2020-10-16 16:37:10 UTC
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
Comment 4 Andrey 2021-03-17 00:32:56 UTC
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.
Comment 5 Andrey 2021-03-17 01:29:14 UTC
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
}
Comment 6 Andrey 2021-03-18 23:12:26 UTC
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
Comment 7 d0048 2022-02-11 08:59:42 UTC
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.
Comment 8 d0048 2022-02-11 09:38:48 UTC
(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.