jwrdegoede / wev

MIT License
15 stars 2 forks source link

make: client-header: No such file or directory #2

Open achenet opened 1 month ago

achenet commented 1 month ago

Hello :)

I'm trying to build wev from source on Debian 12 bookworm.

When I type in make, I get

client-header \
    /stable/xdg-shell/xdg-shell.xml xdg-shell-protocol.h
make: client-header: No such file or directory
make: *** [Makefile:9: xdg-shell-protocol.h] Error 127

reading the Makefile, I notice that this step uses the environment variables WAYLAND_SCANNER and WAYLAND_PROTOCOLS.

these should be set by the Makefile, if I understand it properly? in lines 1 and 2:

WAYLAND_PROTOCOLS=$(shell pkg-config --variable=pkgdatadir wayland-protocols)
WAYLAND_SCANNER=$(shell pkg-config --variable=wayland_scanner wayland-scanner)

however, when I check the value of these two variables, they are both empty. I've tried using fish shell, bash, nushell and zsh.

Criomby commented 1 week ago

You have to install the wayland-protocols package for the header files to be available on your system. Use sudo apt install wayland-protocols and it should work just fine.