Bug 451043 - KWin's CMake can't find wayland at /usr/local, only /usr
Summary: KWin's CMake can't find wayland at /usr/local, only /usr
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: git master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-02 14:46 UTC by Nate Graham
Modified: 2022-03-02 14:54 UTC (History)
0 users

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 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.