Package Details: hyprland-git 0.45.0.r18.3fb47372-1

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
Submitter: hertog
Maintainer: Vaxry (zjeffer, alba4k)
Last Packager: alba4k
Votes: 97
Popularity: 8.30
First Submitted: 2022-04-12 20:26 (UTC)
Last Updated: 2024-11-21 17:56 (UTC)

Required by (59)

Sources (2)

Pinned Comments

zjeffer commented on 2024-07-17 16:50 (UTC) (edited on 2024-07-17 16:52 (UTC) by zjeffer)

Tips & tricks, common issues

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 to build().

build() {
  ...
  meson setup build \
    -D b_pch=false
  ...
}

Build with specific pull requests

Use pick_mr <pull request number> at the end of prepare() to merge pull requests locally. For example, to merge https://github.com/hyprwm/Hyprland/pull/6268, use

prepare() {
    ...

    pick_mr 6268
}

Enable legacy renderer

In the build() function, add -D legacy_renderer=true to meson setup

Compilation errors

If you encounter compilation errors, try the following first:

  • If errors are raised by generated source files under protocols/, such as protocols/linux-dmabuf-v1.hpp, then rebuild or install hyprwayland-scanner-git;
  • Compile with makepkg --cleanbuild.

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.

Latest Comments

« First ‹ Previous 1 .. 24 25 26 27 28 29 30 31 32 Next › Last »

justinesmithies commented on 2023-02-27 19:17 (UTC) (edited on 2023-02-27 19:57 (UTC) by justinesmithies)

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 ..
}

q234rty commented on 2023-02-02 15:39 (UTC)

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.

dropsonde commented on 2022-12-12 22:20 (UTC) (edited on 2022-12-13 18:11 (UTC) by dropsonde)

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.

q234rty commented on 2022-12-11 15:01 (UTC)

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.

MarcusE1W commented on 2022-12-07 18:52 (UTC) (edited on 2022-12-11 15:30 (UTC) by MarcusE1W)

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

q234rty commented on 2022-11-13 11:28 (UTC)

This doesn't build after https://github.com/hyprwm/Hyprland/commit/23cd1b8c66da3e85692891e985567f6f45f6e501

nyanbinary commented on 2022-10-13 15:43 (UTC)

Would like to see that as well.

CrezyDud commented on 2022-09-30 14:00 (UTC)

Can you make an option/seperate package to enable to use system wlroots(instead of build and copy, just copy from root(/))

That1Calculator commented on 2022-08-02 14:10 (UTC)

@8x13b that was an upstream issue and is now fixed.

zoeleu commented on 2022-07-23 04:19 (UTC)

Hey, compiling this on a quad-core laptop absolutely murdered my computer because cmake is using 10 compile jobs at the same time. Could this be fixed here, or should it be reported upstream?