Bug 451043

Summary: KWin's CMake can't find wayland at /usr/local, only /usr
Product: [Plasma] kwin Reporter: Nate Graham <nate>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Nate Graham 2022-03-02 14:46:15 UTC
I have compiled Wayland to /usr/local because the 1.19 version provided by my distro is not new enough to build kwayland-server and kwin, which require 1.20 as of https://invent.kde.org/plasma/kwayland-server/-/commit/7ed6fae8e2638ad2896d3d3e957a09ddd16ded21.

kwayland-server correctly found up the version compiled to /usr/local, but KWin did not, looking only in /usr:

CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Wayland: Found unsuitable version "1.19.0", but required is
  at least "1.20" (found
  /usr/lib64/libwayland-client.so;/usr/lib64/libwayland-server.so;/usr/lib64/libwayland-cursor.so;/usr/lib64/libwayland-egl.so,
  )
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:592 (_FPHSA_FAILURE_MESSAGE)
  /home/nate/kde/usr/share/ECM/find-modules/FindWayland.cmake:110 (find_package_handle_standard_args)
  /usr/share/cmake/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /home/nate/kde/usr/lib64/cmake/KWaylandServer/KWaylandServerConfig.cmake:30 (find_dependency)
  CMakeLists.txt:139 (find_package)
Comment 1 Nate Graham 2022-03-02 14:54:27 UTC
Oops, it's just that KWin needed a clean build.