@memchr
paru -S hyprland-git
Run-time dependency libsystemd found: NO (tried pkgconfig and cmake)
meson.build:54:14: ERROR: Dependency "libsystemd" not found, tried pkgconfig and cmake
meson-log.txt
...
1451 Called: `/usr/bin/pkg-config --modversion libsystemd` -> 1
1452 stderr:
1453 Package libsystemd was not found in the pkg-config search path.
1454 Perhaps you should add the directory containing `libsystemd.pc'
1455 to the PKG_CONFIG_PATH environment variable
1456 Package 'libsystemd', required by 'virtual:world', not found
1457 -----------
...
1481 Try CMake generator: auto
1482 Calling CMake (['/usr/bin/cmake']) in /home/foo/.cache/paru/clone/hyprland-git/src/Hyprland/build/meson-private/cmake_libsystemd
with:
1483 - "--trace-expand"
1484 - "--trace-format=json-v1"
1485 - "--no-warn-unused-cli"
1486 - "--trace-redirect=cmake_trace.txt"
1487 - "-DCMAKE_TOOLCHAIN_FILE=/home/foo/.cache/paru/clone/hyprland-git/src/Hyprland/build/meson-private/cmake_libsystemd/CMakeMeso
nToolchainFile.cmake"
1488 - "."
1489 -- Module search paths: ['/', '/opt', '/usr', '/usr/local']
1490 -- CMake root: /usr/share/cmake
1491 -- CMake architectures: ['libpyldb-util.cpython-311-x86-64-linux-gnu.so', 'libpyldb-util.cpython-311-x86-64-linux-gnu.so.2',
'libpyldb-util.cpython-311-x86-64-linux-gnu.so.2.8.0', 'libpytalloc-util.cpython-311-x86-64-linux-gnu.so', 'libpytalloc-util.cpyth
on-311-x86-64-linux-gnu.so.2', 'libpytalloc-util.cpython-311-x86-64-linux-gnu.so.2.4.1', 'libsamba-policy.cpython-311-x86-64-linux
-gnu.so', 'libsamba-policy.cpython-311-x86-64-linux-gnu.so.0', 'libsamba-policy.cpython-311-x86-64-linux-gnu.so.0.0.1']
1492 -- CMake lib search paths: ['lib', 'lib32', 'lib64', 'libx32', 'share', 'lib/libpyldb-util.cpython-311-x86-64-linux-gnu.so', 'li
b/libpyldb-util.cpython-311-x86-64-linux-gnu.so.2', 'lib/libpyldb-util.cpython-311-x86-64-linux-gnu.so.2.8.0', 'lib/libpytalloc-ut
il.cpython-311-x86-64-linux-gnu.so', 'lib/libpytalloc-util.cpython-311-x86-64-linux-gnu.so.2', 'lib/libpytalloc-util.cpython-311-x
86-64-linux-gnu.so.2.4.1', 'lib/libsamba-policy.cpython-311-x86-64-linux-gnu.so', 'lib/libsamba-policy.cpython-311-x86-64-linux-gn
u.so.0', 'lib/libsamba-policy.cpython-311-x86-64-linux-gnu.so.0.0.1']
1493 Preliminary CMake check failed. Aborting.
1494 Run-time dependency libsystemd found: NO (tried pkgconfig and cmake)
1495
1496 meson.build:54:14: ERROR: Dependency "libsystemd" not found, tried pkgconfig and cmake
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
tobuild()
.Build with specific pull requests
Use
pick_mr <pull request number>
at the end ofprepare()
to merge pull requests locally. For example, to merge https://github.com/hyprwm/Hyprland/pull/6268, useEnable legacy renderer
In the
build()
function, add-D legacy_renderer=true
to meson setupCompilation errors
If you encounter compilation errors, try the following first:
protocols/
, such asprotocols/linux-dmabuf-v1.hpp
, then rebuild or installhyprwayland-scanner-git
;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.