horriblename / hyprgrass

hyprland plugin for touch gestures
BSD 3-Clause "New" or "Revised" License
280 stars 11 forks source link

plugin failed to build #162

Open KAGEYAM4 opened 1 week ago

KAGEYAM4 commented 1 week ago
 hyprpm update --no-shallow --verbose
[v] version returned: Hyprland, built from branch  at commit 4520b30d498daca8079365bdb909a8dea38e8d55  (version: bump to 0.44.1).
Date: Wed Oct 9 12:54:39 2024
Tag: v0.44.1, commits: 5309
built against aquamarine 0.4.2

flags: (if any)

[v] parsed commit 4520b30d498daca8079365bdb909a8dea38e8d55 at branch  on Wed Oct 9 12:54:39 2024, commits 5309

✔ Headers up to date.

 → checking for updates for hyprland-plugins                                                                                                                          
 → Cloning https://github.com/hyprwm/hyprland-plugins                                                                                                                 
✔ repository hyprland-plugins is up-to-date.                                                                                                                          
 → checking for updates for hyprgrass                                                                                                                                 
 → Cloning https://github.com/horriblename/hyprgrass                                                                                                                  
✔ repository hyprgrass is up-to-date.                                                                                                                                 
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━  6 / 6  Done!                                                                                                     
✔ Ensuring plugin load state
✔ Plugin load state ensured

 echo $?
0
 hyprpm list
 → Repository hyprland-plugins:
  │ Plugin borders-plus-plus
  └─ enabled: false
  │ Plugin csgo-vulkan-fix
  └─ enabled: false
  │ Plugin hyprbars
  └─ enabled: false
  │ Plugin hyprexpo
  └─ enabled: false
  │ Plugin hyprtrails
  └─ enabled: false
  │ Plugin hyprwinwrap
  └─ enabled: false
 → Repository hyprgrass:
  │ Plugin hyprgrass
  └─ enabled: Plugin failed to build
horriblename commented 1 week ago

logs?

KAGEYAM4 commented 1 week ago

logs?

how to obtain them? i ran hyprpm with --verbose but no output produced.

KAGEYAM4 commented 1 week ago

found it , had to run hyprpm with --force -->

 → Building hyprgrass                                                                                                                                                      
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╍━━━━━━━━━━━━━━━━  4 / 6  Updating hyprgrass[v] shell returned:  -> cd /tmp/hyprpm/phoenix && PKG_CONFIG_PATH="/home/phoenix/.local/share/hyprpm/headersRoot/share/pkgconfig" meson setup build
The Meson build system
Version: 1.5.2
Source dir: /tmp/hyprpm/phoenix
Build dir: /tmp/hyprpm/phoenix/build
Build type: native build
Project name: hyprgrass
Project version: v0.8.2
C compiler for the host machine: cc (gcc 14.2.1 "cc (GCC) 14.2.1 20240910")
C linker for the host machine: cc ld.bfd 2.43.0
C++ compiler for the host machine: c++ (gcc 14.2.1 "c++ (GCC) 14.2.1 20240910")
C++ linker for the host machine: c++ ld.bfd 2.43.0
Host machine cpu family: x86_64
Host machine cpu: x86_64
Compiler for C++ supports arguments -std=c++23: YES 
meson.build:8: WARNING: Consider using the built-in option for language standard version instead of using "-std=c++23".
Found pkg-config: YES (/usr/bin/pkg-config) 2.1.1
Run-time dependency hyprland found: YES 0.44.1
Found CMake: /usr/bin/cmake (3.30.5)
Run-time dependency wftouch found: NO (tried pkgconfig and cmake)

Executing subproject wf-touch 

wf-touch| Project name: wf-touch
wf-touch| Project version: 0.0
wf-touch| C++ compiler for the host machine: c++ (gcc 14.2.1 "c++ (GCC) 14.2.1 20240910")
wf-touch| C++ linker for the host machine: c++ ld.bfd 2.43.0
wf-touch| Run-time dependency glm found: NO (tried pkgconfig and cmake)

subprojects/wf-touch/meson.build:6:6: ERROR: Dependency "glm" not found, tried pkgconfig and cmake

A full log can be found at /tmp/hyprpm/phoenix/build/meson-logs/meson-log.txt

 -> cd /tmp/hyprpm/phoenix && PKG_CONFIG_PATH="/home/phoenix/.local/share/hyprpm/headersRoot/share/pkgconfig" ninja -C build
ninja: Entering directory `build'
ninja: error: loading 'build.ninja': No such file or directory

✖ Plugin hyprgrass 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.
Fetching submodule subprojects/wf-touch

A full log can be found at /tmp/hyprpm/phoenix/build/meson-logs/meson-log.txt

location doesn't exist

horriblename commented 1 week ago

install glm

KAGEYAM4 commented 1 week ago

okay. should have the read the log.

Don't know why but using hyprpm update --no-shallow --verbose was not enough and hyprpm update --no-shallow --verbose --force worked.

I activated the plugin and added config to ~/.conf/hyprland.conf but its not working. No gesture is triggering. I tested and enable hyprexpo and its working (now disabled it).

Here's my config-->

my config inside hyprland.conf ``` plugin{ touch_gestures { # The default sensitivity is probably too low on tablet screens, # I recommend turning it up to 4.0 sensitivity = 1.0 # must be >= 3 workspace_swipe_fingers = 4 # switching workspaces by swiping from an edge, this is separate from workspace_swipe_fingers # and can be used at the same time # possible values: l, r, u, or d # to disable it set it to anything else workspace_swipe_edge = d # in milliseconds long_press_delay = 400 # in pixels, the distance from the edge that is considered an edge edge_margin = 10 experimental { # send proper cancel events to windows instead of hacky touch_up events, # NOT recommended as it crashed a few times, once it's stabilized I'll make it the default send_cancel = 0 } ############################################### # swipe left from right edge hyprgrass-bind = , edge:r:l, workspace, +1 # swipe up from bottom edge hyprgrass-bind = , edge:d:u, exec, firefox # swipe down from left edge hyprgrass-bind = , edge:l:d, exec, pactl set-sink-volume @DEFAULT_SINK@ -4% # swipe down with 4 fingers # NOTE: swipe events only trigger for finger count of >= 3 #hyprgrass-bind = , swipe:4:d, killactive # swipe diagonally left and down with 3 fingers # l (or r) must come before d and u hyprgrass-bind = , swipe:3:ld, exec, kitty # tap with 3 fingers # NOTE: tap events only trigger for finger count of >= 3 hyprgrass-bind = , tap:3, exec, kitty # longpress can trigger mouse binds: hyprgrass-bindm = , longpress:2, movewindow hyprgrass-bindm = , longpress:3, resizewindow } } ```

Used this syntax as docs mention this -->

Doing decoration:blur { is invalid!