hyprwm / hyprland-plugins

Official plugins for Hyprland
BSD 3-Clause "New" or "Revised" License
521 stars 53 forks source link

cant build hyprtrails (and other plugins too) from source #102

Closed zmeyka3310 closed 6 months ago

zmeyka3310 commented 6 months ago

what the title says.

make: Entering directory '/home/zmeyka/repos/hyprland-plugins/hyprtrails'
g++ -shared -fPIC --no-gnu-unique main.cpp trail.cpp -o hyprtrails.so -g `pkg-config --cflags pixman-1 libdrm hyprland` -std=c++2b -O2
In file included from /usr/include/hyprland/src/includes.hpp:52,
                 from /usr/include/hyprland/src/defines.hpp:1,
                 from /usr/include/hyprland/src/Compositor.hpp:7,
                 from main.cpp:6:
/usr/include/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.
In file included from /usr/include/hyprland/src/includes.hpp:52,
                 from /usr/include/hyprland/src/defines.hpp:1,
                 from /usr/include/hyprland/src/render/decorations/IHyprWindowDecoration.hpp:4,
                 from trail.hpp:7,
                 from trail.cpp:1:
/usr/include/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:2: all] Error 1
make: Leaving directory '/home/zmeyka/repos/hyprland-plugins/hyprtrails'

void linux, up to date, hyprpm has been acting up for the past 3 months with headers so it doesnt work.

vaxerski commented 6 months ago

did you install the headers...?

zmeyka3310 commented 6 months ago

installed both hyprland and hyprland-devel (the devel package is how void manager headers)

vaxerski commented 6 months ago

and I assume you checked out to the plugins pin of whatever version of hyprland you have?

zmeyka3310 commented 6 months ago

and I assume you checked out to the plugins pin of whatever version of hyprland you have?

plugins pin?

zmeyka3310 commented 6 months ago

oh. yes, im on the correct one.

git clone https://github.com/hyprwm/hyprland-plugins/
Cloning into 'hyprland-plugins'...
remote: Enumerating objects: 738, done.
remote: Counting objects: 100% (321/321), done.
remote: Compressing objects: 100% (118/118), done.
remote: Total 738 (delta 224), reused 245 (delta 201), pack-reused 417
Receiving objects: 100% (738/738), 145.41 KiB | 1.79 MiB/s, done.
Resolving deltas: 100% (502/502), done.
[zmeyka@SamsungSmartFridge repos]$ cd hyprland-plugins/
[zmeyka@SamsungSmartFridge hyprland-plugins]$ git checkout 8d3a0701a26d51c9931b3583f93e7fb3fbcd5110
Note: switching to '8d3a0701a26d51c9931b3583f93e7fb3fbcd5110'.
HEAD is now at 8d3a070 hyprpm: add pin for 0.36.0
[zmeyka@SamsungSmartFridge hyprland-plugins]$ git checkout 8d3a0701a26d51c9931b3583f93e7fb3fbcd5110
HEAD is now at 8d3a070 hyprpm: add pin for 0.36.0
[zmeyka@SamsungSmartFridge hyprland-plugins]$ cd hyprtrails/
[zmeyka@SamsungSmartFridge hyprtrails]$ make
g++ -shared -fPIC --no-gnu-unique main.cpp trail.cpp -o hyprtrails.so -g `pkg-config --cflags pixman-1 libdrm hyprland` -std=c++2b -O2
In file included from /usr/include/hyprland/src/includes.hpp:52,
                 from /usr/include/hyprland/src/defines.hpp:1,
                 from /usr/include/hyprland/src/Compositor.hpp:7,
                 from main.cpp:6:
/usr/include/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.
In file included from /usr/include/hyprland/src/includes.hpp:52,
                 from /usr/include/hyprland/src/defines.hpp:1,
                 from /usr/include/hyprland/src/render/decorations/IHyprWindowDecoration.hpp:4,
                 from trail.hpp:7,
                 from trail.cpp:1:
/usr/include/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:2: all] Error 1
[zmeyka@SamsungSmartFridge hyprtrails]$ 
zmeyka3310 commented 6 months ago

double confirming that im infact correct:

architecture: x86_64
changelog: https://github.com/hyprwm/Hyprland/releases
filename-sha256: b91b8f9b7b032442f4851b824b58cf008012ce5229539fbead7cdc07903e0854
filename-size: 202KB
homepage: https://hyprland.org/
install-date: 2024-03-08 05:19 MSK
installed_size: 1026KB
license: BSD-3-Clause
maintainer: Makrennel <makrommel@protonmail.ch>
metafile-sha256: 55c7c486f29f0d13d9150136c0cccbce2104d1fcfbbb468c7eed161a2484c4f8
pkgname: hyprland-devel
pkgver: hyprland-devel-0.36.0_1
repository: /home/zmeyka/repos/void-packages/hostdir/binpkgs
run_depends:
    cairo-devel>=0
    cmake>=0
    cpio>=0
    glslang>=0
    hwids>=0
    hyprland>=0.36.0_1
    hyprlang>=0
    jq>=0
    libdisplay-info-devel>=0
    libdrm-devel>=0
    libgbm-devel>=0
    libglvnd-devel>=0
    libinput-devel>=0
    libliftoff-devel>=0
    libseat-devel>=0
    libxcb-devel>=0
    libxkbcommon-devel>=0
    meson>=0
    ninja>=0
    pango-devel>=0
    pkg-config>=0
    tomlplusplus>=0
    wayland-devel>=0
    wayland-devel>=0
    wayland-protocols>=0
    xcb-util-errors-devel>=0
    xcb-util-renderutil-devel>=0
    xcb-util-wm-devel>=0
    xorg-server-xwayland>=0
short_desc: Dynamic tiling Wayland compositor - development files
state: installed
vaxerski commented 6 months ago

looks suspcious. My guess is the void package is broken. Try doing sudo make installheaders from a cloned hyprland tree instead (obv checkout to 0.36 first)

zmeyka3310 commented 6 months ago

apparently its an issue with tomlplusplus, tho im not entirely sure since it doesnt want to build the hyprland repo either

vaxerski commented 6 months ago

void linux moment most likely, closing. Everyone else can build.