Just a note if the fix below fails to build make sure you also have these deps installed too.
libdisplay-info (AUR)
libliftoff
Git Clone URL: | https://aur.archlinux.org/hyprland-git.git (read-only, click to copy) |
---|---|
Package Base: | hyprland-git |
Description: | Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks |
Upstream URL: | https://github.com/hyprwm/Hyprland |
Licenses: | BSD-3-Clause |
Conflicts: | hyprland |
Provides: | hyprland, wayland-compositor |
Submitter: | hertog |
Maintainer: | Vaxry (zjeffer, alba4k) |
Last Packager: | alba4k |
Votes: | 95 |
Popularity: | 2.51 |
First Submitted: | 2022-04-12 20:26 (UTC) |
Last Updated: | 2025-04-11 23:37 (UTC) |
« First ‹ Previous 1 .. 31 32 33 34 35 36 37 38 39 40 Next › Last »
Just a note if the fix below fails to build make sure you also have these deps installed too.
libdisplay-info (AUR)
libliftoff
@voidspawn, for now you can make it work downloading the AUR Package
and editing the PKGBUILD
.
Run this* (this part was edited):
git clone https://aur.archlinux.org/hyprland-git.git
# or (If you have SSH support for AUR)
git clone ssh://aur@aur.archlinux.org/hyprland-git.git
And then edit the PKGBUILD
(as @justinesmithies stated before) build section with:
build() {
cd "${srcdir}/${_pkgname}"
git submodule update --init
make fixwlr
cd "./subprojects/wlroots/" && meson build/ --prefix="${srcdir}/tmpwlr" --buildtype=release && ninja -C build/ && mkdir -p "${srcdir}/tmpwlr" && ninja -C build/ install && cd ../
cd udis86 && cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -H./ -B./build -G Ninja && cmake --build ./build --config Release --target all -j$(shell nproc) && cd ../..
make protocols
make release
cd ./hyprctl && make all && cd ..
}
i confirm the problem that justinesmithies is talking about, this packages can't build, i get the same error as him.
Hyprland-git no longer builds since todays updates. I get this error:
cmake --build ./build --config Release --target all -j16
ninja: error: '/home/justine/.cache/paru/clone/hyprland-git/src/hyprland/subprojects/udis86/build/libudis86/liblibudis86.a', needed by 'Hyprland', missing and no known rule to make it
make: *** [Makefile:144: release] Error 1
But I've been informed that by changing the build part of the PKGBUILD to below will fix this until the maintainer fixes the PKGBUILD here. PS It does work as I'm using this work around.
build() {
cd "${srcdir}/${_pkgname}"
git submodule update --init
make fixwlr
cd "./subprojects/wlroots/" && meson build/ --prefix="${srcdir}/tmpwlr" --buildtype=release && ninja -C build/ && mkdir -p "${srcdir}/tmpwlr" && ninja -C build/ install && cd ../
cd udis86 && cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -H./ -B./build -G Ninja && cmake --build ./build --config Release --target all -j$(shell nproc) && cd ../..
make protocols
make release
cd ./hyprctl && make all && cd ..
}
This shouldn't have a hard dependency on vulkan-validation-layer, that was only needed at runtime for the wlroots vulkan renderer. Hyprland has it's own renderer and doesn't support vulkan anyway.
Running makepkg -si
on a fresh clone of this repo produces a /usr/bin/Hyprland
which has linked libwlroots.so.12032
to the directory where it was built in my home directory. I checked with: ldd /usr/bin/Hyprland | grep wlroots
Does this happen for everyone, or is there some issue on my end? Or is the issue upstream?
Edit: Solved my own issue by removing the file from my build-dir, ldd now shows the linked libwlroots in /usr/lib like expected.
Could the git submodules be added to sources like in https://wiki.archlinux.org/title/VCS_package_guidelines#Git_submodules? Otherwise the submodules would be downloaded in build()
, which is not great.
Update: 11 Dec Some problems solve themselves. Hyprland 0.19 beta-2 compiles just fine :-)
Old: ====================
==> Starting package()...
install: cannot stat 'build/Hyprland': No such file or directory
Error during install of v0.19 beta-1
This doesn't build after https://github.com/hyprwm/Hyprland/commit/23cd1b8c66da3e85692891e985567f6f45f6e501
Would like to see that as well.
Pinned Comments
xiota commented on 2025-04-11 01:10 (UTC) (edited on 2025-04-11 01:11 (UTC) by xiota)
Here's the current depends tree to help people figure out (re)build order. Some duplicates are omitted.
alba4k commented on 2025-04-09 20:40 (UTC)
To report issues, open pull requests, or check out other hyprland-related packages, you can check out https://github.com/alba4k/hyprwm-pkgbuilds