Skip to content

Commit

Permalink
Installation: install wlroots headers with Meson
Browse files Browse the repository at this point in the history
Hyprland plugin API requires wlroots headers. Dropping
--skip-subprojects will fix plugins but may break system wlroots.
Instead copy and adjust a part of `make installheaders`.

Example error this tries to fix:

In file included from hy3/src/main.cpp:4:
In file included from /usr/local/include/hyprland/src/Compositor.hpp:7:
In file included from /usr/local/include/hyprland/src/defines.hpp:1:
/usr/local/include/hyprland/src/includes.hpp:36:10: fatal error: 'wlr/backend.h' file not found
   36 | #include <wlr/backend.h>
      |          ^~~~~~~~~~~~~~~
  • Loading branch information
jbeich committed Jan 31, 2024
1 parent d3a0024 commit 9c19d4f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pages/Getting Started/Installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@ cd Hyprland
meson setup build
meson compile -C build
meson install -C build --skip-subprojects
PREFIX=/usr/local
cd subprojects/wlroots/include && find . -name '*.h*' -print0 | cpio --quiet -0dump ${PREFIX}/include/hyprland/wlroots && cd ../../..
cd build/subprojects/wlroots/include && find . -name '*.h*' -print0 | cpio --quiet -0dump ${PREFIX}/include/hyprland/wlroots && cd ../../../..
```

Refer to [Debugging](../../Contributing-and-Debugging) to see how to build &
Expand Down

0 comments on commit 9c19d4f

Please sign in to comment.