I am trying to learn how to make a Wayland compositor based on wlroots. Following their wiki, I am trying to compile tinywl.c (github) file as an example with
gcc -o wm1 wm1.c `pkg-config --libs --cflags pixman-1` -DWLR_USE_UNSTABLE
and I get the error
In file included from wm1.c:22: /usr/include/wlr/types/wlr_xdg_shell.h:14:10: fatal error: xdg-shell-protocol.h: No such file or directory 14 | #include "xdg-shell-protocol.h" | ^~~~~~~~~~~~~~~~~~~~~~ compilation terminated.
.
I also checked the makefile but still do not completely understand how to compile this. So, I wonder what are the steps exactly. I am running an Arch Linux and Swaywm works just fine on my machine(I assume there are no missing libraries). Thank you for your help.