I’m trying to get the development working but still can’t build basic KDE apps like Okular and KCalc, because wayland-protocols produce compilation warnings and they are treated as errors:
# kde-builder running: 'ninja'
# from directory: /home/andrej/kde/build/wayland-protocols
# with environment: /home/andrej/kde/build/wayland-protocols/kde-builder.env
[1/489] Generating tests/test-build-cxx-stable_linux_dmabuf_linux_dmabuf_v1_xml.cc with a custom command
[2/489] Linking target tests/test-build-cxx-stable_xdg_shell_xdg_shell_xml
[3/489] Generating tests/tablet-v2-client.h with a custom command
[4/489] Generating tests/tablet-v2-server.h with a custom command
[5/489] Generating tests/tablet-v2-code.c with a custom command
[6/489] Compiling C object tests/test-build-pedantic-stable_viewporter_viewporter_xml.p/meson-generated_.._test-build-pedantic-stable_viewporter_viewporter_xml.c.o
FAILED: tests/test-build-pedantic-stable_viewporter_viewporter_xml.p/meson-generated_.._test-build-pedantic-stable_viewporter_viewporter_xml.c.o
cc -Itests/test-build-pedantic-stable_viewporter_viewporter_xml.p -Itests -I../../src/wayland-protocols/tests -I/home/andrej/kde/usr/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O0 -g -std=c99 -pedantic -Wall -Werror -MD -MQ tests/test-build-pedantic-stable_viewporter_viewporter_xml.p/meson-generated_.._test-build-pedantic-stable_viewporter_viewporter_xml.c.o -MF tests/test-build-pedantic-stable_viewporter_viewporter_xml.p/meson-generated_.._test-build-pedantic-stable_viewporter_viewporter_xml.c.o.d -o tests/test-build-pedantic-stable_viewporter_viewporter_xml.p/meson-generated_.._test-build-pedantic-stable_viewporter_viewporter_xml.c.o -c tests/test-build-pedantic-stable_viewporter_viewporter_xml.c
In file included from /home/andrej/kde/usr/include/wayland-client.h:39,
from /home/andrej/kde/build/wayland-protocols/tests/viewporter-client.h:8,
from tests/test-build-pedantic-stable_viewporter_viewporter_xml.c:1:
/home/andrej/kde/usr/include/wayland-client-core.h:256:42: error: ‘struct timespec’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
256 | const struct timespec *timeout);
| ^~~~~~~~
/home/andrej/kde/usr/include/wayland-client-core.h:261:48: error: ‘struct timespec’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
261 | const struct timespec *timeout);
| ^~~~~~~~
cc1: all warnings being treated as errors
I didn’t specify any branch, so kde-builder is just taking the master branch, I suppose. What am I doing wrong?