Bug 414041 - KwindowSystem fail to find XFixes
Summary: KwindowSystem fail to find XFixes
Status: RESOLVED NOT A BUG
Alias: None
Product: frameworks-kwindowsystem
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR critical
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-11 20:23 UTC by victor
Modified: 2021-06-13 16:00 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description victor 2019-11-11 20:23:43 UTC
SUMMARY
KwindowSystem fails on yocto due to XFixes Library not found by cmake.

STEPS TO REPRODUCE
1. Setup the Yocto enviroment
$ mkdir openstlinux-4.19-thud-mp1-19-10-09
$ cd openstlinux-4.19-thud-mp1-19-10-09
$ repo init -u https://github.com/STMicroelectronics/oe-manifest.git -b refs/tags/openstlinux-4.19-thud-mp1-19-10-09
$ repo sync
$ DISTRO=openstlinux-weston MACHINE=stm32mp1 source layers/meta-st/scripts/envsetup.sh
2. Get all the layers from the "ADDITIONAL INFORMATION" section
3. Checkout the master branches on all meta-layers as provided in "ADDITIONAL INFORMATION" section
4. Start Yocto Build:
$ bitbake -k core-image-plasma-mobile

OBSERVED RESULT
| CMake Error at src/CMakeLists.txt:40 (message):
|   The XFixes library could not be found.  Please install the development
|   package for it.

EXPECTED RESULT
Kwindowsystem should have found xfixes library and the build would then start.

ADDITIONAL INFORMATION:
============================================================================
Distro Configuration:
============================================================================
# =========================================================================
# DISTRO features
# =========================================================================
DISTRO_FEATURES += "  wayland x11 kde opengl pam polkit xattr libxfixes"
DISTRO_FEATURES_append = " gplv3"

============================================================================
Build Configuration:
============================================================================
BB_VERSION           = "1.43.2"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "arm-openstlinux_weston-linux-gnueabi"
MACHINE              = "stm32mp1"
DISTRO               = "openstlinux-weston"
DISTRO_VERSION       = "2.7-snapshot-20191111"
TUNE_FEATURES        = "arm vfp cortexa7 neon vfpv4 thumb callconvention-hard"
TARGET_FPU           = "hard"
DISTRO_CODENAME      = "zeus"
ACCEPT_EULA_stm32mp1 = "1"
GCCVERSION           = "9.%"
PREFERRED_PROVIDER_virtual/kernel = "linux-stm32mp"
meta-python
meta-oe
meta-initramfs
meta-multimedia
meta-networking
meta-webserver
meta-filesystems
meta-perl            = "master:e0daf6f8e0c53e388c631b8cdf3d7d8173dcea95"
meta-st-stm32mp      = "warrior:8263d32304bfc4cc9a6848c50dcee2a9503dccd7"
meta-qt5             = "master:653e12fdb522c19a7467acb85a77d8b3477671cb"
meta-st-openstlinux  = "warrior:f474d7bf38b2ba3722a76de7b5c1e5da5f319b6e"
meta                 = "heads/oe/master:59938780e7e776d87146002ea939b185f8704408"
yocto-meta-kde       = "master:e786a630a74b912bb64eb7db67f75f3550c7923a"
yocto-meta-kf5       = "master:bf6342a7b55cd0f457aace9bdae28dc5e239e3ff"
meta-java            = "master-next:72d32b73861edeed08e9463ceb6e3995f1982be6"
============================================================================
Comment 1 Ahmad Samir 2021-06-13 16:00:00 UTC
When building from source you typically need to install the -devel packages (e.g. libxfixes-devel, or whatever it's called on your system).

Closing, feel free to reopen if you install that package and cmake still complains about it.