Untitled conversation
- User
[~/dwl] > make c99
pkg-config --cflags wlroots wayland-server xkbcommon libinput-I. -DWLR_USE_UNSTABLE -D_POSIX_C_SOURCE=200809L -DVERSION="git describe --tags --dirty 2>/dev/null || echo 0.5" -g -pedantic -Wall -Wextra -Wdeclaration-after-statement -Wno-unused-parameter -Wno-sign-compare -Wshadow -Wunused-macros -Werror=strict-prototypes -Werror=implicit -Werror=return-type -Werror=incompatible-pointer-types -O1 -c dwl.c Package wlroots was not found in the pkg-config search path. Perhaps you should add the directory containing `wlroots.pc' to the PKG_CONFIG_PATH environment variable Package 'wlroots' not found dwl.c:14:10: fatal error: wlr/backend.h: No such file or directory 14 | #include <wlr/backend.h> | ^~~~~~~~~~~~~~~ compilation terminated. make: *** [Makefile:66: dwl.o] Error 1[~/dwl] > sudo make install c99
pkg-config --cflags wlroots wayland-server xkbcommon libinput-I. -DWLR_USE_UNSTABLE -D_POSIX_C_SOURCE=200809L -DVERSION="git describe --tags --dirty 2>/dev/null || echo 0.5" -g -pedantic -Wall -Wextra -Wdeclaration-after-statement -Wno-unused-parameter -Wno-sign-compare -Wshadow -Wunused-macros -Werror=strict-prototypes -Werror=implicit -Werror=return-type -Werror=incompatible-pointer-types -O1 -c dwl.c Package wlroots was not found in the pkg-config search path. Perhaps you should add the directory containing `wlroots.pc' to the PKG_CONFIG_PATH environment variable Package 'wlroots' not found dwl.c:14:10: fatal error: wlr/backend.h: No such file or directory 14 | #include <wlr/backend.h> | ^~~~~~~~~~~~~~~ compilation terminated. make: *** [Makefile:66: dwl.o] Error 1 - Assistant
The error message indicates that the
pkg-configwas not able to find thewlrootspackage, which is essential for compiling thedwl(Dynamic Window Manager for Wayland) project. Here's a step-by-step guide to resolve the issue:-
Install wlroots: Make sure that you have
wlrootsinstalled on your system. Depending on your Linux distribution, the installation command may vary.-
For Ubuntu/Debian: You can install it from source or find a PPA providing
wlroots. There may not be a direct package available, so building from source might be necessary:sudo apt install cmake meson libwayland-dev libxkbcommon-dev libinput-dev git clone https://github.com/swaywm/wlroots.git cd wlroots meson build/ && cd build/ && ninja sudo ninja install -
For Arch: You can install it directly from the official repositories:
sudo pacman -S wlroots -
For Fedora: You can use:
sudo dnf install wlroots
-
-
Set PKG_CONFIG_PATH: If you compiled
wlrootsfrom source, the.pcfiles might not be in the defaultpkg-configsearch path. You can add the installation directory to thePKG_CONFIG_PATH:export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATHAdjust the path based on where
wlrootsinstalled its.pcfiles. -
Re-run Make: After installing
wlrootsand updating yourPKG_CONFIG_PATH, try runningmakeagain in thedwlproject directory:make -
Check for Other Dependencies: Ensure all other dependencies mentioned in the configuration (
wayland-server,xkbcommon,libinput, etc.) are also installed. -
Building and Installing dwl: If the
makecommand succeeds, installdwlwith:sudo make install
After completing these steps, you should be able to compile and install
dwl. If you encounter any further errors, ensure all required dependencies are installed and correctly configured. -