Hyprland build fails to "missing" header files from hyprutils, libinput,

Hyprland version
Hyprland 0.53.0 built from branch main at commit e80f705d76d4dbe836e0f57aadea994a624ac63e clean (compositor: guard null view() in getWindowFromSurface ( 13255)).
Date: Sat Feb 14 00:52:15 2026
Tag: v0.53.0-132-ge80f705d, commits: 6888

Libraries:
Hyprgraphics: built against 0.5.0, system has 0.5.0
Hyprutils: built against 0.11.0, system has 0.11.0
Hyprcursor: built against 0.1.13, system has 0.1.13
Hyprlang: built against 0.6.8, system has 0.6.8
Aquamarine: built against 0.10.0, system has 0.10.0

Version ABI string: e80f705d76d4dbe836e0f57aadea994a624ac63e_aq_0.10_hu_0.11_hg_0.5_hc_0.1_hlg_0.6
no flags were set

Describe your issue / feature…

Hey guys, I switched from the AUR Hyprland version to the self build Github version quite some time ago (0.52.x), because the hyprpm packages didn’t work with the Arch packages, pulled and updated regularly until my current version. Since then i can’t build Hyprland anymore because of “missing” header files. I’ve tried some steps already (remove build dir and rebuild, remove hyprland git folder and redownload it again, checking dependencies and stuff, following the guide mentioned in this topic but the build fails for me), but I keep crashing at the same errors:

earlier identical errors

In file included from /home/germanikus/GitClones/Hyprland/start/src/helpers/Nix.cpp:3:
/home/germanikus/GitClones/Hyprland/start/src/helpers/Logger.hpp:3:10: fatal error: hyprutils/cli/Logger.hpp: No such file or directory
3 | #include <hyprutils/cli/Logger.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [start/CMakeFiles/start-hyprland.dir/build.make:93: start/CMakeFiles/start-hyprland.dir/src/helpers/Nix.cpp.o] Fehler 1
/home/germanikus/GitClones/Hyprland/hyprpm/src/core/Manifest.cpp:2:10: fatal error: toml++/toml.hpp: No such file or directory
2 | #include <toml++/toml.hpp>
| ^~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [hyprpm/CMakeFiles/hyprpm.dir/build.make:107: hyprpm/CMakeFiles/hyprpm.dir/src/core/Manifest.cpp.o] Fehler 1
make[4]: *** Es wird auf noch nicht beendete Prozesse gewartet …
[ 17%] Building CXX object CMakeFiles/hyprland_lib.dir/cmake_pch.hxx.gch
In file included from /home/germanikus/GitClones/Hyprland/hyprctl/hw-protocols/hyprpaper_core-client.hpp:43,
from /home/germanikus/GitClones/Hyprland/hyprctl/hw-protocols/hyprpaper_core-client.cpp:41:
/home/germanikus/GitClones/Hyprland/hyprctl/hw-protocols/hyprpaper_core-spec.hpp:42:10: fatal error: hyprwire/core/types/MessageMagic.hpp: No such file or directory
42 | #include <hyprwire/core/types/MessageMagic.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /home/germanikus/GitClones/Hyprland/hyprctl/src/hyprpaper/Hyprpaper.cpp:2:
/home/germanikus/GitClones/Hyprland/hyprctl/src/hyprpaper/../helpers/Memory.hpp:3:10: fatal error: hyprutils/memory/SharedPtr.hpp: No such file or directory
3 | #include <hyprutils/memory/SharedPtr.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [hyprctl/CMakeFiles/hyprctl.dir/build.make:117: hyprctl/CMakeFiles/hyprctl.dir/hw-protocols/hyprpaper_core-client.cpp.o] Fehler 1
make[4]: *** Es wird auf noch nicht beendete Prozesse gewartet …
make[4]: *** [hyprctl/CMakeFiles/hyprctl.dir/build.make:89: hyprctl/CMakeFiles/hyprctl.dir/src/hyprpaper/Hyprpaper.cpp.o] Fehler 1
In file included from /home/germanikus/GitClones/Hyprland/start/src/main.cpp:5:
/home/germanikus/GitClones/Hyprland/start/src/helpers/Logger.hpp:3:10: fatal error: hyprutils/cli/Logger.hpp: No such file or directory
3 | #include <hyprutils/cli/Logger.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
/home/germanikus/GitClones/Hyprland/hyprpm/src/core/HyprlandSocket.cpp:9:10: fatal error: hyprutils/memory/Casts.hpp: No such file or directory
9 | #include <hyprutils/memory/Casts.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [start/CMakeFiles/start-hyprland.dir/build.make:107: start/CMakeFiles/start-hyprland.dir/src/main.cpp.o] Fehler 1
make[3]: *** [CMakeFiles/Makefile2:1211: start/CMakeFiles/start-hyprland.dir/all] Fehler 2
make[3]: *** Es wird auf noch nicht beendete Prozesse gewartet …
make[4]: *** [hyprpm/CMakeFiles/hyprpm.dir/build.make:93: hyprpm/CMakeFiles/hyprpm.dir/src/core/HyprlandSocket.cpp.o] Fehler 1
/home/germanikus/GitClones/Hyprland/hyprpm/src/core/DataState.cpp:3:10: fatal error: toml++/toml.hpp: No such file or directory
3 | #include <toml++/toml.hpp>
| ^~~~~~~~~~~~~~~~~
compilation terminated.
/home/germanikus/GitClones/Hyprland/hyprpm/src/helpers/Sys.cpp:13:10: fatal error: hyprutils/os/Process.hpp: No such file or directory
13 | #include <hyprutils/os/Process.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [hyprpm/CMakeFiles/hyprpm.dir/build.make:79: hyprpm/CMakeFiles/hyprpm.dir/src/core/DataState.cpp.o] Fehler 1
make[4]: *** [hyprpm/CMakeFiles/hyprpm.dir/build.make:149: hyprpm/CMakeFiles/hyprpm.dir/src/helpers/Sys.cpp.o] Fehler 1
/home/germanikus/GitClones/Hyprland/hyprpm/src/progress/CProgressBar.cpp:12:10: fatal error: hyprutils/memory/Casts.hpp: No such file or directory
12 | #include <hyprutils/memory/Casts.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [hyprpm/CMakeFiles/hyprpm.dir/build.make:177: hyprpm/CMakeFiles/hyprpm.dir/src/progress/CProgressBar.cpp.o] Fehler 1
/home/germanikus/GitClones/Hyprland/hyprpm/src/main.cpp:11:10: fatal error: hyprutils/utils/ScopeGuard.hpp: No such file or directory
11 | #include <hyprutils/utils/ScopeGuard.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [hyprpm/CMakeFiles/hyprpm.dir/build.make:163: hyprpm/CMakeFiles/hyprpm.dir/src/main.cpp.o] Fehler 1
/home/germanikus/GitClones/Hyprland/hyprpm/src/core/PluginManager.cpp:25:10: fatal error: toml++/toml.hpp: No such file or directory
25 | #include <toml++/toml.hpp>
| ^~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [hyprpm/CMakeFiles/hyprpm.dir/build.make:135: hyprpm/CMakeFiles/hyprpm.dir/src/core/PluginManager.cpp.o] Fehler 1
/home/germanikus/GitClones/Hyprland/hyprctl/src/main.cpp:28:10: fatal error: hyprutils/string/String.hpp: No such file or directory
28 | #include <hyprutils/string/String.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [hyprctl/CMakeFiles/hyprctl.dir/build.make:103: hyprctl/CMakeFiles/hyprctl.dir/src/main.cpp.o] Fehler 1
make[3]: *** [CMakeFiles/Makefile2:1179: hyprctl/CMakeFiles/hyprctl.dir/all] Fehler 2
make[3]: *** [CMakeFiles/Makefile2:1243: hyprpm/CMakeFiles/hyprpm.dir/all] Fehler 2
[ 17%] Building CXX object CMakeFiles/hyprland_lib.dir/src/config/ConfigValue.cpp.o
...
[ 25%] Building CXX object CMakeFiles/hyprland_lib.dir/src/desktop/state/FocusState.cpp.o
In file included from /home/germanikus/GitClones/Hyprland/src/config/ConfigWatcher.hpp:2,
from /home/germanikus/GitClones/Hyprland/src/config/ConfigWatcher.cpp:1:
/home/germanikus/GitClones/Hyprland/src/config/../helpers/memory/Memory.hpp:3:10: fatal error: hyprutils/memory/WeakPtr.hpp: No such file or directory
3 | #include <hyprutils/memory/WeakPtr.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /home/germanikus/GitClones/Hyprland/src/config/ConfigValue.cpp:1:
/home/germanikus/GitClones/Hyprland/src/config/ConfigValue.hpp:5:10: fatal error: hyprlang.hpp: No such file or directory
5 | #include <hyprlang.hpp>
| ^~~~~~~~~~~~~~
compilation terminated.
In file included from /home/germanikus/GitClones/Hyprland/src/desktop/Workspace.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/desktop/Workspace.cpp:1:
/home/germanikus/GitClones/Hyprland/src/desktop/../helpers/AnimatedVariable.hpp:3:10: fatal error: hyprutils/animation/AnimatedVariable.hpp: No such file or directory
3 | #include <hyprutils/animation/AnimatedVariable.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [CMakeFiles/hyprland_lib.dir/build.make:564: CMakeFiles/hyprland_lib.dir/src/config/ConfigWatcher.cpp.o] Fehler 1
In file included from /home/germanikus/GitClones/Hyprland/src/debug/log/Logger.cpp:1:
/home/germanikus/GitClones/Hyprland/src/debug/log/Logger.hpp:3:10: fatal error: hyprutils/cli/Logger.hpp: No such file or directory
3 | #include <hyprutils/cli/Logger.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** Es wird auf noch nicht beendete Prozesse gewartet …
In file included from /home/germanikus/GitClones/Hyprland/src/desktop/reserved/ReservedArea.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/desktop/reserved/ReservedArea.cpp:1:
/home/germanikus/GitClones/Hyprland/src/desktop/reserved/../../helpers/math/Math.hpp:3:10: fatal error: wayland-server-protocol.h: No such file or directory
3 | #include <wayland-server-protocol.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /home/germanikus/GitClones/Hyprland/src/desktop/rule/matchEngine/../../DesktopTypes.hpp:2,
from /home/germanikus/GitClones/Hyprland/src/desktop/rule/matchEngine/MatchEngine.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/desktop/rule/Rule.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/desktop/rule/Engine.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/desktop/rule/Engine.cpp:1:
/home/germanikus/GitClones/Hyprland/src/desktop/rule/matchEngine/../../../helpers/memory/Memory.hpp:3:10: fatal error: hyprutils/memory/WeakPtr.hpp: No such file or directory
3 | #include <hyprutils/memory/WeakPtr.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /home/germanikus/GitClones/Hyprland/src/defines.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/debug/crash/SignalSafe.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/debug/crash/SignalSafe.cpp:1:
/home/germanikus/GitClones/Hyprland/src/includes.hpp:10:10: fatal error: libinput.h: No such file or directory
10 | #include <libinput.h>
| ^~~~~~~~~~~~
compilation terminated.
make[4]: *** [CMakeFiles/hyprland_lib.dir/build.make:660: CMakeFiles/hyprland_lib.dir/src/debug/log/Logger.cpp.o] Fehler 1
make[4]: *** [CMakeFiles/hyprland_lib.dir/build.make:548: CMakeFiles/hyprland_lib.dir/src/config/ConfigValue.cpp.o] Fehler 1
make[4]: *** [CMakeFiles/hyprland_lib.dir/build.make:676: CMakeFiles/hyprland_lib.dir/src/desktop/Workspace.cpp.o] Fehler 1
In file included from /home/germanikus/GitClones/Hyprland/src/desktop/history/../DesktopTypes.hpp:2,
from /home/germanikus/GitClones/Hyprland/src/desktop/history/WorkspaceHistoryTracker.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/desktop/history/WorkspaceHistoryTracker.cpp:1:
/home/germanikus/GitClones/Hyprland/src/desktop/history/../../helpers/memory/Memory.hpp:3:10: fatal error: hyprutils/memory/WeakPtr.hpp: No such file or directory
3 | #include <hyprutils/memory/WeakPtr.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [CMakeFiles/hyprland_lib.dir/build.make:724: CMakeFiles/hyprland_lib.dir/src/desktop/reserved/ReservedArea.cpp.o] Fehler 1
make[4]: *** [CMakeFiles/hyprland_lib.dir/build.make:740: CMakeFiles/hyprland_lib.dir/src/desktop/rule/Engine.cpp.o] Fehler 1
In file included from /home/germanikus/GitClones/Hyprland/src/debug/HyprCtl.hpp:4,
from /home/germanikus/GitClones/Hyprland/src/debug/HyprCtl.cpp:1:
/home/germanikus/GitClones/Hyprland/src/debug/../helpers/MiscFunctions.hpp:4:10: fatal error: wayland-server.h: No such file or directory
4 | #include <wayland-server.h>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [CMakeFiles/hyprland_lib.dir/build.make:644: CMakeFiles/hyprland_lib.dir/src/debug/crash/SignalSafe.cpp.o] Fehler 1
In file included from /home/germanikus/GitClones/Hyprland/src/desktop/rule/layerRule/../../DesktopTypes.hpp:2,
from /home/germanikus/GitClones/Hyprland/src/desktop/rule/layerRule/LayerRuleApplicator.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/desktop/rule/layerRule/LayerRuleApplicator.cpp:1:
/home/germanikus/GitClones/Hyprland/src/desktop/rule/layerRule/../../../helpers/memory/Memory.hpp:3:10: fatal error: hyprutils/memory/WeakPtr.hpp: No such file or directory
3 | #include <hyprutils/memory/WeakPtr.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 25%] Building CXX object CMakeFiles/hyprland_lib.dir/src/desktop/view/Group.cpp.o
compilation terminated.
[ 26%] Building CXX object CMakeFiles/hyprland_lib.dir/src/desktop/view/LayerSurface.cpp.o
In file included from /home/germanikus/GitClones/Hyprland/src/desktop/rule/matchEngine/../../DesktopTypes.hpp:2,
from /home/germanikus/GitClones/Hyprland/src/desktop/rule/matchEngine/MatchEngine.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/desktop/rule/Rule.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/desktop/rule/Rule.cpp:1:
/home/germanikus/GitClones/Hyprland/src/desktop/rule/matchEngine/../../../helpers/memory/Memory.hpp:3:10: fatal error: hyprutils/memory/WeakPtr.hpp: No such file or directory
3 | #include <hyprutils/memory/WeakPtr.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [CMakeFiles/hyprland_lib.dir/build.make:708: CMakeFiles/hyprland_lib.dir/src/desktop/history/WorkspaceHistoryTracker.cpp.o] Fehler 1
make[4]: *** [CMakeFiles/hyprland_lib.dir/build.make:580: CMakeFiles/hyprland_lib.dir/src/debug/HyprCtl.cpp.o] Fehler 1
In file included from /home/germanikus/GitClones/Hyprland/src/desktop/rule/layerRule/../matchEngine/../../DesktopTypes.hpp:2,
from /home/germanikus/GitClones/Hyprland/src/desktop/rule/layerRule/../matchEngine/MatchEngine.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/desktop/rule/layerRule/../Rule.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/desktop/rule/layerRule/LayerRule.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/desktop/rule/layerRule/LayerRule.cpp:1:
/home/germanikus/GitClones/Hyprland/src/desktop/rule/layerRule/../matchEngine/../../../helpers/memory/Memory.hpp:3:10: fatal error: hyprutils/memory/WeakPtr.hpp: No such file or directory
3 | #include <hyprutils/memory/WeakPtr.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [CMakeFiles/hyprland_lib.dir/build.make:788: CMakeFiles/hyprland_lib.dir/src/desktop/rule/layerRule/LayerRuleApplicator.cpp.o] Fehler 1
In file included from /home/germanikus/GitClones/Hyprland/src/desktop/rule/matchEngine/../../DesktopTypes.hpp:2,
from /home/germanikus/GitClones/Hyprland/src/desktop/rule/matchEngine/MatchEngine.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/desktop/rule/matchEngine/TagMatchEngine.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/desktop/rule/matchEngine/TagMatchEngine.cpp:1:
/home/germanikus/GitClones/Hyprland/src/desktop/rule/matchEngine/../../../helpers/memory/Memory.hpp:3:10: fatal error: hyprutils/memory/WeakPtr.hpp: No such file or directory
3 | #include <hyprutils/memory/WeakPtr.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /home/germanikus/GitClones/Hyprland/src/desktop/rule/matchEngine/../../DesktopTypes.hpp:2,
from /home/germanikus/GitClones/Hyprland/src/desktop/rule/matchEngine/MatchEngine.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/desktop/rule/matchEngine/BoolMatchEngine.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/desktop/rule/matchEngine/BoolMatchEngine.cpp:1:
/home/germanikus/GitClones/Hyprland/src/desktop/rule/matchEngine/../../../helpers/memory/Memory.hpp:3:10: fatal error: hyprutils/memory/WeakPtr.hpp: No such file or directory
3 | #include <hyprutils/memory/WeakPtr.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [CMakeFiles/hyprland_lib.dir/build.make:756: CMakeFiles/hyprland_lib.dir/src/desktop/rule/Rule.cpp.o] Fehler 1
In file included from /home/germanikus/GitClones/Hyprland/src/desktop/rule/matchEngine/../../DesktopTypes.hpp:2,
from /home/germanikus/GitClones/Hyprland/src/desktop/rule/matchEngine/MatchEngine.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/desktop/rule/matchEngine/IntMatchEngine.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/desktop/rule/matchEngine/IntMatchEngine.cpp:1:
/home/germanikus/GitClones/Hyprland/src/desktop/rule/matchEngine/../../../helpers/memory/Memory.hpp:3:10: fatal error: hyprutils/memory/WeakPtr.hpp: No such file or directory
3 | #include <hyprutils/memory/WeakPtr.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /home/germanikus/GitClones/Hyprland/src/desktop/history/../DesktopTypes.hpp:2,
from /home/germanikus/GitClones/Hyprland/src/desktop/history/WindowHistoryTracker.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/desktop/history/WindowHistoryTracker.cpp:1:
/home/germanikus/GitClones/Hyprland/src/desktop/history/../../helpers/memory/Memory.hpp:3:10: fatal error: hyprutils/memory/WeakPtr.hpp: No such file or directory
3 | #include <hyprutils/memory/WeakPtr.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [CMakeFiles/hyprland_lib.dir/build.make:772: CMakeFiles/hyprland_lib.dir/src/desktop/rule/layerRule/LayerRule.cpp.o] Fehler 1
make[4]: *** [CMakeFiles/hyprland_lib.dir/build.make:884: CMakeFiles/hyprland_lib.dir/src/desktop/rule/matchEngine/TagMatchEngine.cpp.o] Fehler 1
make[4]: *** [CMakeFiles/hyprland_lib.dir/build.make:820: CMakeFiles/hyprland_lib.dir/src/desktop/rule/matchEngine/BoolMatchEngine.cpp.o] Fehler 1
In file included from /home/germanikus/GitClones/Hyprland/src/desktop/rule/windowRule/../matchEngine/../../DesktopTypes.hpp:2,
from /home/germanikus/GitClones/Hyprland/src/desktop/rule/windowRule/../matchEngine/MatchEngine.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/desktop/rule/windowRule/../Rule.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/desktop/rule/windowRule/WindowRule.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/desktop/rule/windowRule/WindowRule.cpp:1:
/home/germanikus/GitClones/Hyprland/src/desktop/rule/windowRule/../matchEngine/../../../helpers/memory/Memory.hpp:3:10: fatal error: hyprutils/memory/WeakPtr.hpp: No such file or directory
3 | #include <hyprutils/memory/WeakPtr.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /home/germanikus/GitClones/Hyprland/src/desktop/rule/matchEngine/../../DesktopTypes.hpp:2,
from /home/germanikus/GitClones/Hyprland/src/desktop/rule/matchEngine/MatchEngine.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/desktop/rule/matchEngine/RegexMatchEngine.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/desktop/rule/matchEngine/RegexMatchEngine.cpp:1:
/home/germanikus/GitClones/Hyprland/src/desktop/rule/matchEngine/../../../helpers/memory/Memory.hpp:3:10: fatal error: hyprutils/memory/WeakPtr.hpp: No such file or directory
3 | #include <hyprutils/memory/WeakPtr.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [CMakeFiles/hyprland_lib.dir/build.make:836: CMakeFiles/hyprland_lib.dir/src/desktop/rule/matchEngine/IntMatchEngine.cpp.o] Fehler 1
make[4]: *** [CMakeFiles/hyprland_lib.dir/build.make:692: CMakeFiles/hyprland_lib.dir/src/desktop/history/WindowHistoryTracker.cpp.o] Fehler 1
In file included from /home/germanikus/GitClones/Hyprland/src/desktop/rule/layerRule/LayerRuleEffectContainer.hpp:4,
from /home/germanikus/GitClones/Hyprland/src/desktop/rule/layerRule/LayerRuleEffectContainer.cpp:1:
/home/germanikus/GitClones/Hyprland/src/desktop/rule/layerRule/../../../helpers/memory/Memory.hpp:3:10: fatal error: hyprutils/memory/WeakPtr.hpp: No such file or directory
3 | #include <hyprutils/memory/WeakPtr.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [CMakeFiles/hyprland_lib.dir/build.make:868: CMakeFiles/hyprland_lib.dir/src/desktop/rule/matchEngine/RegexMatchEngine.cpp.o] Fehler 1
make[4]: *** [CMakeFiles/hyprland_lib.dir/build.make:916: CMakeFiles/hyprland_lib.dir/src/desktop/rule/windowRule/WindowRule.cpp.o] Fehler 1
In file included from /home/germanikus/GitClones/Hyprland/src/desktop/state/../DesktopTypes.hpp:2,
from /home/germanikus/GitClones/Hyprland/src/desktop/state/FocusState.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/desktop/state/FocusState.cpp:1:
/home/germanikus/GitClones/Hyprland/src/desktop/state/../../helpers/memory/Memory.hpp:3:10: fatal error: hyprutils/memory/WeakPtr.hpp: No such file or directory
3 | #include <hyprutils/memory/WeakPtr.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /home/germanikus/GitClones/Hyprland/src/desktop/rule/matchEngine/../../DesktopTypes.hpp:2,
from /home/germanikus/GitClones/Hyprland/src/desktop/rule/matchEngine/MatchEngine.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/desktop/rule/matchEngine/WorkspaceMatchEngine.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/desktop/rule/matchEngine/WorkspaceMatchEngine.cpp:1:
/home/germanikus/GitClones/Hyprland/src/desktop/rule/matchEngine/../../../helpers/memory/Memory.hpp:3:10: fatal error: hyprutils/memory/WeakPtr.hpp: No such file or directory
3 | #include <hyprutils/memory/WeakPtr.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [CMakeFiles/hyprland_lib.dir/build.make:804: CMakeFiles/hyprland_lib.dir/src/desktop/rule/layerRule/LayerRuleEffectContainer.cpp.o] Fehler 1
In file included from /home/germanikus/GitClones/Hyprland/src/desktop/rule/matchEngine/../../DesktopTypes.hpp:2,
from /home/germanikus/GitClones/Hyprland/src/desktop/rule/matchEngine/MatchEngine.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/desktop/rule/matchEngine/MatchEngine.cpp:1:
/home/germanikus/GitClones/Hyprland/src/desktop/rule/matchEngine/../../../helpers/memory/Memory.hpp:3:10: fatal error: hyprutils/memory/WeakPtr.hpp: No such file or directory
3 | #include <hyprutils/memory/WeakPtr.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [CMakeFiles/hyprland_lib.dir/build.make:964: CMakeFiles/hyprland_lib.dir/src/desktop/state/FocusState.cpp.o] Fehler 1
make[4]: *** [CMakeFiles/hyprland_lib.dir/build.make:900: CMakeFiles/hyprland_lib.dir/src/desktop/rule/matchEngine/WorkspaceMatchEngine.cpp.o] Fehler 1
In file included from /home/germanikus/GitClones/Hyprland/src/desktop/rule/windowRule/WindowRuleEffectContainer.hpp:4,
from /home/germanikus/GitClones/Hyprland/src/desktop/rule/windowRule/WindowRuleEffectContainer.cpp:1:
/home/germanikus/GitClones/Hyprland/src/desktop/rule/windowRule/../../../helpers/memory/Memory.hpp:3:10: fatal error: hyprutils/memory/WeakPtr.hpp: No such file or directory
3 | #include <hyprutils/memory/WeakPtr.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [CMakeFiles/hyprland_lib.dir/build.make:852: CMakeFiles/hyprland_lib.dir/src/desktop/rule/matchEngine/MatchEngine.cpp.o] Fehler 1

In file included from /home/germanikus/GitClones/Hyprland/src/debug/crash/CrashReporter.cpp:9:
/home/germanikus/GitClones/Hyprland/src/debug/crash/../../helpers/MiscFunctions.hpp:4:10: fatal error: wayland-server.h: No such file or directory
4 | #include <wayland-server.h>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [CMakeFiles/hyprland_lib.dir/build.make:948: CMakeFiles/hyprland_lib.dir/src/desktop/rule/windowRule/WindowRuleEffectContainer.cpp.o] Fehler 1
In file included from /home/germanikus/GitClones/Hyprland/src/desktop/rule/windowRule/WindowRuleEffectContainer.hpp:4,
from /home/germanikus/GitClones/Hyprland/src/desktop/rule/windowRule/WindowRuleApplicator.hpp:6,
from /home/germanikus/GitClones/Hyprland/src/desktop/rule/windowRule/WindowRuleApplicator.cpp:1:
/home/germanikus/GitClones/Hyprland/src/desktop/rule/windowRule/../../../helpers/memory/Memory.hpp:3:10: fatal error: hyprutils/memory/WeakPtr.hpp: No such file or directory
3 | #include <hyprutils/memory/WeakPtr.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [CMakeFiles/hyprland_lib.dir/build.make:628: CMakeFiles/hyprland_lib.dir/src/debug/crash/CrashReporter.cpp.o] Fehler 1
In file included from /home/germanikus/GitClones/Hyprland/src/desktop/view/../../defines.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/desktop/view/WLSurface.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/desktop/view/View.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/desktop/view/GlobalViewMethods.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/desktop/view/GlobalViewMethods.cpp:1:
/home/germanikus/GitClones/Hyprland/src/desktop/view/../../includes.hpp:10:10: fatal error: libinput.h: No such file or directory
10 | #include <libinput.h>
| ^~~~~~~~~~~~
compilation terminated.
make[4]: *** [CMakeFiles/hyprland_lib.dir/build.make:932: CMakeFiles/hyprland_lib.dir/src/desktop/rule/windowRule/WindowRuleApplicator.cpp.o] Fehler 1
make[4]: *** [CMakeFiles/hyprland_lib.dir/build.make:980: CMakeFiles/hyprland_lib.dir/src/desktop/view/GlobalViewMethods.cpp.o] Fehler 1
In file included from /home/germanikus/GitClones/Hyprland/src/desktop/view/../../defines.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/desktop/view/LayerSurface.hpp:4,
from /home/germanikus/GitClones/Hyprland/src/desktop/view/LayerSurface.cpp:1:
/home/germanikus/GitClones/Hyprland/src/desktop/view/../../includes.hpp:10:10: fatal error: libinput.h: No such file or directory
10 | #include <libinput.h>
| ^~~~~~~~~~~~
compilation terminated.
In file included from /home/germanikus/GitClones/Hyprland/src/desktop/view/../DesktopTypes.hpp:2,
from /home/germanikus/GitClones/Hyprland/src/desktop/view/Group.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/desktop/view/Group.cpp:1:
/home/germanikus/GitClones/Hyprland/src/desktop/view/../../helpers/memory/Memory.hpp:3:10: fatal error: hyprutils/memory/WeakPtr.hpp: No such file or directory
3 | #include <hyprutils/memory/WeakPtr.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [CMakeFiles/hyprland_lib.dir/build.make:1012: CMakeFiles/hyprland_lib.dir/src/desktop/view/LayerSurface.cpp.o] Fehler 1
make[4]: *** [CMakeFiles/hyprland_lib.dir/build.make:996: CMakeFiles/hyprland_lib.dir/src/desktop/view/Group.cpp.o] Fehler 1
In file included from /home/germanikus/GitClones/Hyprland/src/config/ConfigManager.cpp:3:
/home/germanikus/GitClones/Hyprland/src/config/ConfigManager.hpp:3:10: fatal error: hyprutils/animation/AnimationConfig.hpp: No such file or directory
3 | #include <hyprutils/animation/AnimationConfig.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /home/germanikus/GitClones/Hyprland/src/managers/../defines.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/managers/XWaylandManager.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/Compositor.hpp:8,
from /home/germanikus/GitClones/Hyprland/src/Compositor.cpp:4:
/home/germanikus/GitClones/Hyprland/src/managers/../includes.hpp:10:10: fatal error: libinput.h: No such file or directory
10 | #include <libinput.h>
| ^~~~~~~~~~~~
compilation terminated.
make[4]: *** [CMakeFiles/hyprland_lib.dir/build.make:516: CMakeFiles/hyprland_lib.dir/src/Compositor.cpp.o] Fehler 1
make[4]: *** [CMakeFiles/hyprland_lib.dir/build.make:532: CMakeFiles/hyprland_lib.dir/src/config/ConfigManager.cpp.o] Fehler 1
In file included from /home/germanikus/GitClones/Hyprland/src/debug/../defines.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/debug/HyprNotificationOverlay.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/debug/HyprNotificationOverlay.cpp:3:
/home/germanikus/GitClones/Hyprland/src/debug/../includes.hpp:10:10: fatal error: libinput.h: No such file or directory
10 | #include <libinput.h>
| ^~~~~~~~~~~~
compilation terminated.
make[4]: *** [CMakeFiles/hyprland_lib.dir/build.make:612: CMakeFiles/hyprland_lib.dir/src/debug/HyprNotificationOverlay.cpp.o] Fehler 1
In file included from /home/germanikus/GitClones/Hyprland/src/debug/../defines.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/debug/HyprDebugOverlay.hpp:3,
from /home/germanikus/GitClones/Hyprland/src/debug/HyprDebugOverlay.cpp:2:
/home/germanikus/GitClones/Hyprland/src/debug/../includes.hpp:10:10: fatal error: libinput.h: No such file or directory
10 | #include <libinput.h>
| ^~~~~~~~~~~~
compilation terminated.
make[4]: *** [CMakeFiles/hyprland_lib.dir/build.make:596: CMakeFiles/hyprland_lib.dir/src/debug/HyprDebugOverlay.cpp.o] Fehler 1
make[3]: *** [CMakeFiles/Makefile2:1083: CMakeFiles/hyprland_lib.dir/all] Fehler 2
make[2]: *** [Makefile:166: all] Fehler 2
make[2]: Verzeichnis „/home/germanikus/GitClones/Hyprland/build“ wird verlassen
make[1]: *** [Makefile:8: release] Fehler 2
make[1]: Verzeichnis „/home/germanikus/GitClones/Hyprland“ wird verlassen
make: *** [Makefile:25: all] Fehler 2

checking those missing headers returns:

find /usr/include/hyprutils -name “WeakPtr.hpp”                                                                             

/usr/include/hyprutils/memory/WeakPtr.hpp
find /usr/include/ -name “libinput.h”                                                                                                 
find /usr/include/ -name “wayland-server.h”

/usr/include/wlroots-0.18/wlr/backend/libinput.h
/usr/include/wlroots-0.19/wlr/backend/libinput.h
/usr/include/libinput.h
/usr/include/wayland-server.h
GCC, G++ and CMake

gcc (GCC) 15.2.1 20260209

g++ (GCC) 15.2.1 20260209

cmake version 4.2.3

Anyone has any ideas on this? For me this seems like a configuration error on my side, but the builds before all worked flawlessly. Or has there been any changes (which broke it at least for me)? Or has anyone a Guide for Arch based distros on installing everything correctly if I’m missing something?

Thanks in advance!

so i let run GitHub Copilot over the project and it changed some stuff according to the error log. In case somebody has similar problems, here is the summary:

Summary of Fixes
Missing hyprutils headers: The subprojects were not building correctly. Fixed by ensuring the subprojects compile first.
Missing libinput.h: Added include_directories(/usr/include/libinput) to the CMakeLists.txt to include the libinput headers.
xkbcommon API compatibility: The code was using newer xkbcommon functions (XKB_KEYMAP_FORMAT_TEXT_V2 and xkb_keymap_new_from_names2) that weren’t available in the system’s xkbcommon version. Changed to the older API:
XKB_KEYMAP_FORMAT_TEXT_V2 → XKB_KEYMAP_FORMAT_TEXT_V1
xkb_keymap_new_from_names2 → xkb_keymap_new_from_names (removing the format parameter)
PCRE2 linking issues: The glib library was linked against a newer PCRE2 version than available. Fixed by using the system compiler with system include directories (include_directories(/usr/include)).