I am trying to build GTK 3.24/3.22 with Wayland IM module support (–with-included-immodules=wayland) and so far I am running into a crash/failed compilation. Specifically:
imwayland.c:29:10: fatal error: text-input-unstable-v3-client-protocol.h: No such file or directory
I asked about this on IRC but I don’t think it went anywhere. Some relevant information:
You mixed up two different names. The file that you found is an XML file. But, the file that’s missing is a C header – it should be in a different place. Use pkg-config --cflags-only-I to find out where to look for it.
There’s something wrong in the build system; it seems it’s not generating the header and sources from the XML—and, yet, the rules are there and they typically work, as the CI infrastructure would have caught that.
Which version of Automake and Autoconf are you using? Are you using GNU make? Do you have a text-input-unstable-v3-client-protocol.h somewhere in the source directory or the inclusion path?
Can you try starting from a clean clone, and doing:
NOCONFIGURE=1 ./autogen.sh
mkdir _build && cd _build
../configure --with-included-immodules=wayland
With meson I specified the Wayland backend and everything built correctly. As a side note: it seems specifying the Wayland backend (both with make and meson) does indeed the build the Wayland IM module, as I see an im-wayland.so file after compilation.