Bug 456455 - Craft qtbase blueprint fails to build on Linux when using the Qt Patch Collection
Summary: Craft qtbase blueprint fails to build on Linux when using the Qt Patch Collec...
Status: RESOLVED FIXED
Alias: None
Product: Craft
Classification: Unmaintained
Component: Blueprints (show other bugs)
Version: stable
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: Hannah von Reth
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-07 16:56 UTC by Javier O. Cordero Pérez (Cuperino)
Modified: 2024-03-16 18:49 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Javier O. Cordero Pérez (Cuperino) 2022-07-07 16:56:43 UTC
SUMMARY
Craft blueprint qtbase fails to build on Linux when using the Qt Patch Collection due to inability to find features.xlib and libs.xcb_xlib.

STEPS TO REPRODUCE
1. Prepare the OS for Craft:
> sudo apt update
> sudo apt install python3 python3-pip python3-venv build-essential git wget libxcb-xinerama0-dev
> sudo apt-get build-dep qt5-default #on new distros qt5-default is not available anymore try qtbase5-dev instead
2. Create and start a new Craft environment on an x86_64 system that runs macOS:
> python3 -c "$(wget https://raw.githubusercontent.com/KDE/craft/master/setup/CraftBootstrap.py -O -)" --prefix ~/CraftRoot
> source ~/CraftRoot/craft/craftenv.sh
3. Configure Craft to use KDE's Qt Patch Collection
> craft --set version=kde/5.15 libs/qt5
4. Build qtbase
> craft libs/qt5/qtbase

OBSERVED RESULT
libxcb dependency fails to be found:
> ERROR: Feature 'xcb-xlib' was enabled, but the pre-condition 'features.xlib && libs.xcb_xlib' failed.
> 
> Check config.log for details.
> 
> # Before sourcing craftenv.sh, ensure PKG_CONFIG_PATH includes xcb.pc, gl.pc etc
> export PKG_CONFIG_PATH=/usr/lib64/pkgconfig:/usr/share/pkgconfig
> # Install build dependencies on builder:
> sudo yum-builddep qt5-qtbase && sudo yum install libxkbcommon-x11-devel
> sudo apt build-dep qt5-default
> 
> Action: compile for libs/qt5/qtbase:kde/5.15 FAILED

EXPECTED RESULT
AppImage builds with the patch collection.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 18.04 and KDE neon Testing Edition
Qt Version: 5.15.5 kde-patched

ADDITIONAL INFORMATION
1. This issue has no relation with #456452 apart from the fact that it only happens when using Craft with the patch collection.
2. Running `export PKG_CONFIG_PATH=/usr/lib64/pkgconfig:/usr/share/pkgconfig` from bashrc or manually beforehand makes no difference in either OS.
Comment 1 Javier O. Cordero Pérez (Cuperino) 2022-07-23 04:25:38 UTC
Quick note. This issue only happens when using GCC. It does not occur when building the Patch Collection branch using Clang.
Comment 2 Julius Künzel 2024-03-16 18:49:13 UTC
We are using the patch collection for Qt5 again and the build works. For xcb, please also take a look at the dependencies at https://community.kde.org/Craft/Linux