@memchr
Hyprland source changes frequently, it is recommended to use the -git version of the dependent hyprwm libraries.
Indeed, so can't you change the PKGBUILD to depend on the -git libraries instead of the non-git ones?
Currently, on a new system running paru -S hyprland-git
will install the non-git dependencies, failing the compilation of Hyprland.
Pinned Comments
memchr commented on 2024-06-10 00:39 (UTC) (edited on 2024-06-12 06:25 (UTC) by memchr)
hyprwm libraries
Hyprland source changes frequently, it is recommended to use the
-git
version of the dependent hyprwm libraries.paru
yay
using ccache/sccache
Precompiled headers (PCH) was enabled by default, this would most likely invalidate the compiler cache if any of the upstream header files change. To disable PCH, add the meson build option
-Db_pch=false
tobuild()
.Build with specific pull requests
Use
pick_mr <pull request number>
at the end ofprepare()
to merge pull requests locally. For example, to merge https://github.com/hyprwm/Hyprland/pull/6268, useEnable legacy renderer
In the
build()
function, add-D legacy_renderer=true
tomeson setup
Compilation errors
If you encounter compilation errors, try the following first:
protocols/
, such asprotocols/linux-dmabuf-v1.hpp
, then rebuild or installhyprwayland-scanner-git
;-git
packages for all hyprwm libraries;makepkg --cleanbulid
.Symbol not declared
Errors like
<symbol> was not declared in this scope
<symbol> has not been declared
are usually caused by missing headers. Please consider reporting this upstream or creating a pull request if it has not already been done.