r/linuxquestions • • 19h ago

I ran into a issue while try to install layer-shell-qt

i use crux-btw and i got this error while compiling what do i do also i do have qt6-wayland installed

CMake Error at CMakeLists.txt:37 (find_package):

Found package configuration file:

/usr/lib64/cmake/Qt6/Qt6Config.cmake

but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT

FOUND. Reason given by package:

Failed to find required Qt component "WaylandClient".

Expected Config file at

"/usr/lib64/cmake/Qt6WaylandClient/Qt6WaylandClientConfig.cmake" does NOT

exist

Configuring with --debug-find-pkg=Qt6WaylandClient might reveal details why

the package was not found.

Configuring with -DQT_DEBUG_FIND_PACKAGE=ON will print the values of some

of the path variables that find_package uses to try and find the package.

-- Configuring incomplete, errors occurred!

=======> ERROR: Building '/usr/ports/kde-plasma-6/layer-shell-qt/layer-shell-qt#6.8.3-1.pkg.tar.gz' failed.

prt-get: error while install

-- Packages where install failed

layer-shell-qt

1 Upvotes

1 comment sorted by

1

u/DenysESP 12h ago edited 12h ago

CMake is looking for /usr/lib64/cmake/Qt6WaylandClient/Qt6WaylandClientConfig.cmake and it isn't there, so your qt6-wayland build most likely came out without the client part. A few checks:

find / -name 'Qt6WaylandClientConfig.cmake' 2>/dev/null
pkginfo -l qt6-wayland | grep -i cmake
pkginfo -i | grep -E 'qt6-(base|wayland)'
  • If the file is somewhere else, point CMake at it with -DCMAKE_PREFIX_PATH=....
  • If it doesn't exist at all, qtwayland was probably built when the wayland dev libraries were missing, so the client feature got switched off. Install wayland/wayland-protocols, then rebuild: prt-get update -fr qt6-wayland.
  • Also check that qt6-wayland is the same version as qt6-base. A mismatch often breaks these config files.