outfoxxed / hy3

Hyprland plugin for an i3 / sway like manual tiling layout
GNU General Public License v3.0
391 stars 32 forks source link

Fails to install hy3 on version hl0.40.0 #107

Closed Xrayya closed 1 month ago

Xrayya commented 1 month ago

I tried every method but all failed and now I'm kinda desperate...

My system:

Every time I installed or updated hy3, the error was always the same

❯ hyprpm add https://github.com/outfoxxed/hy3 -v
[v] version returned: Hyprland, built from branch  at commit cba1ade848feac44b2eda677503900639581c3f4  (props: bump version to 0.40.0).
Date: Sat May 4 15:42:32 2024
Tag: v0.40.0, commits: 4606

flags: (if any)

[v] parsed commit cba1ade848feac44b2eda677503900639581c3f4 at branch  on Sat May 4 15:42:32 2024, commits 4606
✔ adding a new plugin repository from https://github.com/outfoxxed/hy3
  MAKE SURE that you trust the authors. DO NOT install random plugins without verifying the code and author.
  Are you sure? [Y/n] 

 → Cloning https://github.com/outfoxxed/hy3                                                                                                                                      
✔ cloned                                                                                                                                                                         
✔ found hyprpm manifest                                                                                                                                                          
✔ parsed manifest, found 1 plugins:                                                                                                                                              
 → hy3 by outfoxxed version                                                                                                                                                      
 → Manifest has 9 pins, checking                                                                                                                                                 
✔ commit pin 584a1b1e357412a1a4ac40dbc6c4e5adaa7ec59b matched hl, resetting                                                                                                      
✔ Hyprland headers OK                                                                                                                                                            
 → Building hy3                                                                                                                                                                  
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╍━━━━━━━━━━━━━━━━━━━  3 / 5  Building plugin(s)[v] shell returned:  -> cd /tmp/hyprpm/xrayya && PKG_CONFIG_PATH="/home/xrayya/.local/share/hyprpm/headersRoot/share/pkgconfig" cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -B build
-- The C compiler identification is GNU 14.1.1
-- The CXX compiler identification is GNU 14.1.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "2.1.1")
-- Checking for modules 'hyprland;pixman-1;libdrm;pango;pangocairo'
--   Found hyprland, version 0.39.1
--   Found pixman-1, version 0.43.4
--   Found libdrm, version 2.4.120
--   Found pango, version 1.52.2
--   Found pangocairo, version 1.52.2
-- Configuring done (0.6s)
-- Generating done (0.0s)
-- Build files have been written to: /tmp/hyprpm/xrayya/build

 -> cd /tmp/hyprpm/xrayya && PKG_CONFIG_PATH="/home/xrayya/.local/share/hyprpm/headersRoot/share/pkgconfig" cmake --build build
[ 14%] Building CXX object CMakeFiles/hy3.dir/src/main.cpp.o
In file included from /home/xrayya/.local/share/hyprpm/headersRoot/include/hyprland/src/includes.hpp:52,
                 from /home/xrayya/.local/share/hyprpm/headersRoot/include/hyprland/src/defines.hpp:1,
                 from /home/xrayya/.local/share/hyprpm/headersRoot/include/hyprland/src/Compositor.hpp:7,
                 from /tmp/hyprpm/xrayya/src/main.cpp:1:
/home/xrayya/.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/hy3.dir/build.make:76: CMakeFiles/hy3.dir/src/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/hy3.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

✖ Plugin hy3 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!  
Xrayya commented 1 month ago

Nevermind, I found the rat, I didn't install hyprwayland-scanner. I knew a few weeks ago that hyprland needed that package. I installed hyprland from arch repo. I expected all dependencies to be installed with hyprland, but this one was not