DreamMaoMao/hycov

Plugin failed to build

Closed this issue · 3 comments

On hyprland v0.40.0


 -> cd /tmp/hyprpm/userone && PKG_CONFIG_PATH="/home/userone/.local/share/hyprpm/headersRoot/share/pkgconfig" cmake --build build -j $(nproc)
[ 80%] Building CXX object CMakeFiles/hycov.dir/src/main.cpp.o
[ 80%] Building CXX object CMakeFiles/hycov.dir/src/globaleventhook.cpp.o
[ 80%] Building CXX object CMakeFiles/hycov.dir/src/dispatchers.cpp.o
[ 80%] Building CXX object CMakeFiles/hycov.dir/src/OvGridLayout.cpp.o
In file included from /home/userone/.local/share/hyprpm/headersRoot/include/hyprland/src/debug/../includes.hpp:52,
                 from /home/userone/.local/share/hyprpm/headersRoot/include/hyprland/src/debug/Log.hpp:7,
                 from /tmp/hyprpm/userone/src/log.hpp:3,
                 from /tmp/hyprpm/userone/src/globals.hpp:3,
                 from /tmp/hyprpm/userone/src/dispatchers.hpp:2,
                 from /tmp/hyprpm/userone/src/main.cpp:3:
/home/userone/.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[2]: *** [CMakeFiles/hycov.dir/build.make:76: CMakeFiles/hycov.dir/src/main.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/userone/.local/share/hyprpm/headersRoot/include/hyprland/src/debug/../includes.hpp:52,
                 from /home/userone/.local/share/hyprpm/headersRoot/include/hyprland/src/debug/Log.hpp:7,
                 from /tmp/hyprpm/userone/src/log.hpp:3,
                 from /tmp/hyprpm/userone/src/globals.hpp:3,
                 from /tmp/hyprpm/userone/src/dispatchers.hpp:2,
                 from /tmp/hyprpm/userone/src/globaleventhook.cpp:3:
/home/userone/.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"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/userone/.local/share/hyprpm/headersRoot/include/hyprland/src/debug/../includes.hpp:52,
                 from /home/userone/.local/share/hyprpm/headersRoot/include/hyprland/src/debug/Log.hpp:7,
                 from /tmp/hyprpm/userone/src/log.hpp:3,
                 from /tmp/hyprpm/userone/src/globals.hpp:3,
                 from /tmp/hyprpm/userone/src/OvGridLayout.cpp:2:
/home/userone/.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.
compilation terminated.
In file included from /home/userone/.local/share/hyprpm/headersRoot/include/hyprland/src/debug/../includes.hpp:52,
                 from /home/userone/.local/share/hyprpm/headersRoot/include/hyprland/src/debug/Log.hpp:7,
                 from /tmp/hyprpm/userone/src/log.hpp:3,
                 from /tmp/hyprpm/userone/src/globals.hpp:3,
                 from /tmp/hyprpm/userone/src/dispatchers.hpp:2,
                 from /tmp/hyprpm/userone/src/dispatchers.cpp:1:
/home/userone/.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[2]: *** [CMakeFiles/hycov.dir/build.make:118: CMakeFiles/hycov.dir/src/globaleventhook.cpp.o] Error 1
make[2]: *** [CMakeFiles/hycov.dir/build.make:104: CMakeFiles/hycov.dir/src/OvGridLayout.cpp.o] Error 1
make[2]: *** [CMakeFiles/hycov.dir/build.make:90: CMakeFiles/hycov.dir/src/dispatchers.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/hycov.dir/all] Error 2
make: *** [Makefile:136: all] Error 2


✖ Plugin hycov 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.```

This is the hyprland header compiled include error, this is not directly related to hycov, and does not involve hycov code, you should check your environment header and compilation method.

Im using hyprpm to compile and can you kindly elaborate on the "environment header" part. I will transfer this issue to the appropriate repo. Thanks for the help.

This problem seems to be with Hyprland itself. I was able to fix this by installing hyprwayland-scannerand hyprpm update -f. Related thread in hyprland repo: hyprwm/Hyprland#6008.