Package Details: hyprland-git 0.44.0.r123.0ec128e5-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.64
First Submitted: 2022-04-12 20:26 (UTC)
Last Updated: 2024-11-11 21:42 (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 .. 5 6 7 8 9 10 11 12 13 14 15 .. 32 Next › Last »

sevy2010 commented on 2024-05-14 10:07 (UTC)

I also got that error and simply commenting out line 131 did the trick because the wlr folder is at the destination after build anyway

kotv commented on 2024-05-13 12:41 (UTC)

Also for me changing line 131 in PKGBUILD solved .cache/paru/clone/hyprland-git/pkg/hyprland-git/usr/include/wlr': No such file or directory @hertog @memchr please update the PKGBUILD

forgotmypasswd commented on 2024-05-12 19:37 (UTC)

The issue stems from the directory that wlroots is built in changing, it seems. Changing line 131 in PKGBUILD to use "$pkgdir/usr/include/hyprland/wlr" as the source directory allows the package to build correctly.

alekgr commented on 2024-05-12 16:27 (UTC)

All,

Looks like latest commit doesn't build Getting

Installing /home/alek/.cache/paru/clone/hyprland-git/src/Hyprland/build/meson-private/hyprland.pc to /home/alek/.cache/paru/clone/hyprland-git/pkg/hyprland-git/usr/share/pkgconfig mv: cannot stat '/home/alek/.cache/paru/clone/hyprland-git/pkg/hyprland-git/usr/include/wlr': No such file or directory ==> ERROR: A failure occurred in package(). Aborting... error: failed to build 'hyprland-git-0.38.0.r105.582d6233-1':

I have submitted a bug upstream https://github.com/hyprwm/Hyprland/issues/6040

marianoboragno commented on 2024-05-03 16:01 (UTC)

Heads up and further clarification to the error below:

It doesn't compile with the aur/hyprwayland-scanner package, it requires aur/hyprwayland-scanner-git, but the dependency is on aur/hyprwayland-scanner.

If it is the first time hyprwayland-scanner is being installed as a dependency, stop the process, install aur/hyprwayland-scanner-git and then update hyprland.

Pryka commented on 2024-04-30 21:20 (UTC)

@tilltend Thanks. It worked!

tilltend commented on 2024-04-30 19:09 (UTC)

@Pryka You need update hyprwayland-scanner-git.

<deleted-account> commented on 2024-04-30 00:21 (UTC)

I suggest reporting this upstream

Pryka commented on 2024-04-29 17:57 (UTC) (edited on 2024-04-29 17:59 (UTC) by Pryka)

Can't build it for about 2-3 days now:

[475/513] Compiling C++ object src/Hyprland.p/protocols_ForeignToplevelWlr.cpp.o FAILED: src/Hyprland.p/protocols_ForeignToplevelWlr.cpp.o c++ -Isrc/Hyprland.p -Isrc -I../src -Isubprojects/wlroots-hyprland/include -I../subprojects/wlroots-hyprland/include -Isubprojects/udis86 -I../subprojects/udis86 -I../subprojects/udis86/libudis86 -Isubprojects/udis86/__CMake_build -I../subprojects/udis86/__CMake_build -Iprotocols -I/usr/include/libdrm -I/usr/include/pixman-1 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/pango-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/uuid -flto=auto -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -fpch-preprocess -include pch.hpp -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -O3 -Wno-unused-parameter -Wno-unused-value -Wno-missing-field-initializers -Wno-narrowing -DHAS_EXECINFO -DUSES_SYSTEMD -std=c++23 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/home/pryka/.cache/yay/hyprland-git/src=/usr/src/debug/hyprland-git -flto=auto -fPIE -pthread -DWLR_USE_UNSTABLE -MD -MQ src/Hyprland.p/protocols_ForeignToplevelWlr.cpp.o -MF src/Hyprland.p/protocols_ForeignToplevelWlr.cpp.o.d -o src/Hyprland.p/protocols_ForeignToplevelWlr.cpp.o -c ../src/protocols/ForeignToplevelWlr.cpp ../src/protocols/ForeignToplevelWlr.cpp: In member function ‘void CForeignToplevelWlrManager::onMap(PHLWINDOW)’: ../src/protocols/ForeignToplevelWlr.cpp:198:51: error: invalid conversion from ‘std::__shared_ptr<CZwlrForeignToplevelHandleV1, __gnu_cxx::_S_atomic>::element_type*’ {aka ‘CZwlrForeignToplevelHandleV1*’} to ‘uint32_t’ {aka ‘unsigned int’} [-fpermissive] 198 | resource->sendToplevel(NEWHANDLE->resource.get()); | ~~~~~~~~~~~~~~~~~~~~~~~^~ | | | std::__shared_ptr<CZwlrForeignToplevelHandleV1, __gnu_cxx::_S_atomic>::element_type* {aka CZwlrForeignToplevelHandleV1*} In file included from ../src/protocols/ForeignToplevelWlr.hpp:6, from ../src/protocols/ForeignToplevelWlr.cpp:1: protocols/wlr-foreign-toplevel-management-unstable-v1.hpp:94:23: note: initializing argument 1 of ‘void CZwlrForeignToplevelManagerV1::sendToplevel(uint32_t)’ 94 | void sendToplevel(uint32_t); | ^~~~~~~~ [477/513] Compiling C++ object src/Hyprland.p/protocols_ForeignToplevel.cpp.o FAILED: src/Hyprland.p/protocols_ForeignToplevel.cpp.o c++ -Isrc/Hyprland.p -Isrc -I../src -Isubprojects/wlroots-hyprland/include -I../subprojects/wlroots-hyprland/include -Isubprojects/udis86 -I../subprojects/udis86 -I../subprojects/udis86/libudis86 -Isubprojects/udis86/__CMake_build -I../subprojects/udis86/__CMake_build -Iprotocols -I/usr/include/libdrm -I/usr/include/pixman-1 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/pango-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/uuid -flto=auto -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -fpch-preprocess -include pch.hpp -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -O3 -Wno-unused-parameter -Wno-unused-value -Wno-missing-field-initializers -Wno-narrowing -DHAS_EXECINFO -DUSES_SYSTEMD -std=c++23 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/home/pryka/.cache/yay/hyprland-git/src=/usr/src/debug/hyprland-git -flto=auto -fPIE -pthread -DWLR_USE_UNSTABLE -MD -MQ src/Hyprland.p/protocols_ForeignToplevel.cpp.o -MF src/Hyprland.p/protocols_ForeignToplevel.cpp.o.d -o src/Hyprland.p/protocols_ForeignToplevel.cpp.o -c ../src/protocols/ForeignToplevel.cpp ../src/protocols/ForeignToplevel.cpp: In member function ‘void CForeignToplevelList::onMap(PHLWINDOW)’: ../src/protocols/ForeignToplevel.cpp:60:51: error: invalid conversion from ‘std::__shared_ptr<CExtForeignToplevelHandleV1, __gnu_cxx::_S_atomic>::element_type*’ {aka ‘CExtForeignToplevelHandleV1*’} to ‘uint32_t’ {aka ‘unsigned int’} [-fpermissive] 60 | resource->sendToplevel(NEWHANDLE->resource.get()); | ~~~~~~~~~~~~~~~~~~~~~~~^~ | | | std::__shared_ptr<CExtForeignToplevelHandleV1, __gnu_cxx::_S_atomic>::element_type* {aka CExtForeignToplevelHandleV1*} In file included from ../src/protocols/ForeignToplevel.hpp:7, from ../src/protocols/ForeignToplevel.cpp:1: protocols/ext-foreign-toplevel-list-v1.hpp:87:23: note: initializing argument 1 of ‘void CExtForeignToplevelListV1::sendToplevel(uint32_t)’ 87 | void sendToplevel(uint32_t); | ^~~~~~~~ [484/513] Compiling C++ object src/Hyprland.p/protocols_IdleInhibit.cpp.o ninja: build stopped: subcommand failed.

Any ideas?

<deleted-account> commented on 2024-04-27 11:57 (UTC)

It has already been added, please update your local PKGBUILD.