Package Details: hyprland-git 0.46.0.r115.ga6b26371-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, BSD-2-Clause
Conflicts: hyprland
Provides: hyprland, wayland-compositor
Submitter: hertog
Maintainer: Vaxry (zjeffer, alba4k)
Last Packager: alba4k
Votes: 94
Popularity: 1.58
First Submitted: 2022-04-12 20:26 (UTC)
Last Updated: 2025-01-15 20:42 (UTC)

Dependencies (55)

Required by (64)

Sources (2)

Latest Comments

« First ‹ Previous 1 .. 7 8 9 10 11 12 13 14 15 16 17 .. 39 Next › Last »

<deleted-account> commented on 2024-07-23 18:36 (UTC)

@neometra Thank you, but copying and symlinking resulted in the same outcome for me. An insta-crash when I try to start hyprland (It doesn't even starts). And so far I tried so many things but I wasted hours across multiple days trying to fix this, and that not my job, its the hyprland developers.

neometra commented on 2024-07-23 18:11 (UTC) (edited on 2024-07-23 18:13 (UTC) by neometra)

Hello, I am not much of a programmer, and I am new to ArchLinux, but I wanted to post this and hope it helps. I had the same issue as @rabaimor. Creating a symlink did not resolve my issue. I used the following command to do so.

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

However, what did work was this command.

cp libhyprutils.so libhyprutils.so.0

For whatever reason the symlink would cause hyprctl to throw odd errors. Copying the file as you see above fixed everything. I do not know what the correct fix for this is but that is the workaround that has worked for me. Hope this helps.

zjeffer commented on 2024-07-21 21:35 (UTC) (edited on 2024-07-21 21:37 (UTC) by zjeffer)

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

I feel like that would make a difference, because if hyprcursor-git can't be installed, then hyprland won't be (re)installed either, because it's a required dependency, right? What's the error hyprcursor-git gives?

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"

@rabaimor That's really strange. Can you post the output of the following commands?

whereis Hyprland
ldd $(which Hyprland) | grep -i hypr
paru -Ql hyprutils-git | grep -i "/usr/lib/"

<deleted-account> 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)

<deleted-account> 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

<deleted-account> 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.