hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
20.98k stars 880 forks source link

fatal error: wlr-layer-shell-unstable-v1-protocol.h: No such file or directory #6011

Closed Mr-Ples closed 5 months ago

Mr-Ples commented 5 months ago

Hyprland Version

System/Version info ```sh $ hyprctl systeminfo Hyprland, built from branch main at commit 601210878dc5d05f195753dccf0cafa3187c6ad6 (cmake: bump hw-s required ver to 0.3.5). Date: Tue May 7 22:03:26 2024 Tag: v0.40.0-25-g60121087, commits: 4631 flags: (if any) System Information: System name: Linux Node name: socrates Release: 6.8.9-arch1-2 Version: #1 SMP PREEMPT_DYNAMIC Tue, 07 May 2024 21:35:54 +0000 GPU information: 26:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] [1002:67df] (rev ef) (prog-if 00 [VGA controller]) os-release: NAME="Arch Linux" PRETTY_NAME="Arch Linux" ID=arch BUILD_ID=rolling ANSI_COLOR="38;2;23;147;209" HOME_URL="https://archlinux.org/" DOCUMENTATION_URL="https://wiki.archlinux.org/" SUPPORT_URL="https://bbs.archlinux.org/" BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues" PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/" LOGO=archlinux-logo plugins: ```

Bug or Regression?

Bug

Description

Trying to install a plugin but getting fatal error: wlr-layer-shell-unstable-v1-protocol.h: No such file or directory

I don't know if its the plugin doing something wrong or hyprland pls advise

How to reproduce

Crash reports, logs, images, videos

Logs ```sh hyprpm add https://github.com/Mr-Ples/HyKeysDebug -v [v] version returned: Hyprland, built from branch main at commit 601210878dc5d05f195753dccf0cafa3187c6ad6 (cmake: bump hw-s required ver to 0.3.5). Date: Tue May 7 22:03:26 2024 Tag: v0.40.0-25-g60121087, commits: 4631 flags: (if any) [v] parsed commit 601210878dc5d05f195753dccf0cafa3187c6ad6 at branch main on Tue May 7 22:03:26 2024, commits 4631 ✔ adding a new plugin repository from https://github.com/Mr-Ples/HyKeysDebug MAKE SURE that you trust the authors. DO NOT install random plugins without verifying the code and author. Are you sure? [Y/n] Y → Cloning https://github.com/Mr-Ples/HyKeysDebug ✔ cloned ✔ found hyprload manifest ✔ parsed manifest, found 1 plugins: → hykeys by Euro20179 version 0.1 ✔ Hyprland headers OK → Building hykeys ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╍━━━━━━━━━━━━━━━━━━━ 3 / 5 Building plugin(s)[v] shell returned: -> cd /tmp/hyprpm/simon && PKG_CONFIG_PATH="/home/simon/.local/share/hyprpm/headersRoot/share/pkgconfig" make all g++ -shared -fPIC --no-gnu-unique -g -std=c++2b -Wno-c++11-narrowing `pkg-config --cflags pixman-1 libdrm hyprland pangocairo libinput libudev wayland-server xkbcommon` main.cpp -o hykeys.so `pkg-config --libs pangocairo` -O2 In file included from /home/simon/.local/share/hyprpm/headersRoot/include/hyprland/src/managers/../includes.hpp:52, from /home/simon/.local/share/hyprpm/headersRoot/include/hyprland/src/managers/../defines.hpp:1, from /home/simon/.local/share/hyprpm/headersRoot/include/hyprland/src/managers/EventManager.hpp:6, from main.cpp:6: /home/simon/.local/share/hyprpm/headersRoot/include/hyprland/wlroots-hyprland/wlr/types/wlr_layer_shell_v1.h:16:10: fatal error: wlr-layer-shell-unstable-v1-protocol.h: No such file or directory 16 | #include "wlr-layer-shell-unstable-v1-protocol.h" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make: *** [Makefile:11: hykeys.so] Error 1 ✖ Plugin hykeys failed to build. This likely means that the plugin is either outdated, not yet available for your version, or broken. If you are on -git, update first. Try re-running with -v to see more verbose output. ✔ all plugins built ✔ installed repository ✔ you can now enable the plugin(s) with hyprpm enable ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5 / 5 Done! ```
Mr-Ples commented 5 months ago

also happens with other plugins e.g. hyprpm add https://github.com/KZDKM/Hyprspace.git -v even the official plugins: hyprpm add https://github.com/hyprwm/hyprland-plugins.git -v

$ hyprpm list
 → Repository hyprland-plugins:
  │ Plugin borders-plus-plus
  └─ enabled: Plugin failed to build
  │ Plugin csgo-vulkan-fix
  └─ enabled: Plugin failed to build
  │ Plugin hyprbars
  └─ enabled: Plugin failed to build
  │ Plugin hyprexpo
  └─ enabled: Plugin failed to build
  │ Plugin hyprtrails
  └─ enabled: Plugin failed to build
  │ Plugin hyprwinwrap
  └─ enabled: Plugin failed to build
 → Repository HyKeysDebug:
  │ Plugin hykeys
  └─ enabled: Plugin failed to build
 → Repository Hyprspace:
  │ Plugin Hyprspace
  └─ enabled: Plugin failed to build

maybe im missing a dependency?

Mr-Ples commented 5 months ago

im on hyprland-git from AUR and this is happening even if i clone the Hyprland repo and run make all && make installheaders

also ls /home/simon/.local/share/hyprpm/headersRoot/include/hyprland/protocols/ returns an empty dir

Mr-Ples commented 5 months ago

after manually copying some stuff: cp Hyprland/protocols/* /home/simon/.local/share/hyprpm/headersRoot/include/hyprland/protocols/ + cp Hyprland/subprojects/wlroots-hyprland/build/protocol/* /home/simon/.local/share/hyprpm/headersRoot/include/hyprland/protocols/

most of the official plugins build and work

KCkingcollin commented 5 months ago

getting a very similar issue, but only with the extra repo package, open bug here: https://github.com/hyprwm/Hyprland/issues/6008

KCkingcollin commented 5 months ago

cp Hyprland/subprojects/wlroots-hyprland/build/protocol/* /home/simon/.local/share/hyprpm/headersRoot/include/hyprland/protocols/

this worked for me as well on the Arch Extra repo package. could someone smarter than me explain what happened here? was it just a misconfiguration of make file locations?

vaxerski commented 5 months ago

pc file was a bit fucked but it should be working on git. related stuff like #5946