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.47
First Submitted: 2022-04-12 20:26 (UTC)
Last Updated: 2024-11-21 17:56 (UTC)

Dependencies (54)

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 2 3 4 5 6 7 8 9 10 11 .. 32 Next › Last »

rabaimor commented on 2024-07-21 21:19 (UTC)

@zjeffer tr leaves "⏎" at the output end but I know what you mean. Reinstalling all the dependencies (which I did already) does not fix the error. (aside from hyprcursor-git which gave me a build error, and I don't feel like trying to fix it when it wont make a difference anyways). Also "ln -s /usr/lib/libhyprutils.so.0.2.0 /usr/lib/libhyprutils.so.0" only makes the error change to: "Hyprland: error while loading shared libraries: libhyprutils.so.1: cannot open shared object file: No such file or directory"

zjeffer commented on 2024-07-21 20:19 (UTC)

@rabaimor Can you try the following command?

paru -S $(pactree -u -d 1 hyprland-git | tr '\n' ' ') --asdeps

(subsitute paru with yay if you use that, install pactree if you haven't yet: it's part of the pacman-contrib package)

rabaimor commented on 2024-07-21 19:59 (UTC)

@zjeffer Did not fix it for me... Even after recompiling everything the issue still presists.

zjeffer commented on 2024-07-21 14:27 (UTC)

@rabaimor Reinstalling hyprlang-git fixed it, see my discussion with vaxry here: https://github.com/hyprwm/hyprutils/pull/9#issuecomment-2241629614

zjeffer commented on 2024-07-21 13:34 (UTC)

@rabaimor I have the same issue but I haven't yet figured out what causes it. It started happening when hyprutils v0.2.0 was released (where the so version was increased from 0 to 1), which was before the latest AUR package update.

A quick workaround is to symlink libhyprutils.so.0.2.0 to libhyprutils.so.0:

sudo ln -s /usr/lib/libhyprutils.so.0.2.0 /usr/lib/libhyprutils.so.0

rabaimor commented on 2024-07-19 14:21 (UTC)

Update completely broke it:

Hyprland: error while loading shared libraries: libhyprutils.so.0: cannot open shared object file: No such file or directory

Downgading hyprland-git and hyprland-git-debug only resulted in a different error cause of different libaries, had to downgrade both hyprutils and hyprland.

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.

zjeffer commented on 2024-07-17 16:45 (UTC) (edited on 2024-07-17 17:54 (UTC) by zjeffer)

@alekgr Should now be fixed. I updated the PKGBUILD to depend on the -git hypr packages instead of the releases.

EDIT: nevermind, I see what the problem is now. See disucssion here: https://github.com/hyprwm/hyprutils/pull/9. Recompiling should fix it.

alekgr commented on 2024-07-16 23:41 (UTC)

workaround by sym linking libhyprutils.so.0 to libhyprutils.0.2.0

alekgr commented on 2024-07-16 22:21 (UTC)

Anybody having issues starting Hyprland with the latest 2 commits Looks like hyprutils 2.0 broke it for me

Getting this on error logs. I can't see libhyprutils.so.0
Hyprland: error while loading shared libraries: libhyprutils.so.0: cannot open shared object file: No such file or directory

lrwxrwxrwx 1 root root 17 Jul 15 20:19 libhyprutils.so -> libhyprutils.so.1 -rwxr-xr-x 1 root root 75824 Jul 15 20:19 libhyprutils.so.0.2.0 lrwxrwxrwx 1 root root 21 Jul 15 20:19 libhyprutils.so.1 -> libhyprutils.so.0.2.0