xml-stripblanks preprocessing requested, but XMLLINT is not set, and xmllint is not in PATH
[1449/2816] Compiling C object modules/printbackends/libprintbackend-lpr.so.p/gtkprintbackendlpr.c.o
FAILED: modules/printbackends/libprintbackend-lpr.so.p/gtkprintbackendlpr.c.o
cc -Imodules/printbackends/libprintbackend-lpr.so.p -Imodules/printbackends -I../modules/printbackends -I. -I.. -Igtk -I../gtk -Isubprojects/pango -I../subprojects/pango -Isubprojects/fribidi -I../subprojects/fribidi -Isubprojects/fribidi/lib -I../subprojects/fribidi/lib -Isubprojects/fribidi/gen.tab -I../subprojects/fribidi/gen.tab -Isubprojects/harfbuzz/src -I../subprojects/harfbuzz/src -Isubprojects/pango/pango -I../subprojects/pango/pango -Isubprojects/gdk-pixbuf -I../subprojects/gdk-pixbuf -Isubprojects/libepoxy/include -I../subprojects/libepoxy/include -Isubprojects/libepoxy/src -I../subprojects/libepoxy/src -Isubprojects/graphene/include -I../subprojects/graphene/include -Igdk/x11 -I../gdk/x11 -Igdk -I../gdk -Isubprojects/wayland -I../subprojects/wayland -Isubprojects/wayland/src -I../subprojects/wayland/src -Isubprojects/wayland/egl -I../subprojects/wayland/egl -Isubprojects/gdk-pixbuf/gdk-pixbuf -Isubprojects/libepoxy/include/epoxy -Igtk/css -Igsk -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/uuid -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/x86_64-linux-gnu -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu99 -O2 -g -DG_LOG_USE_STRUCTURED=1 -DGLIB_DISABLE_DEPRECATION_WARNINGS '-DGTK_VERSION="4.8.1"' -D_GNU_SOURCE -DG_ENABLE_DEBUG -fPIC -pthread -DGTK_COMPILATION -DGTK_DISABLE_DEPRECATION_WARNINGS -DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED '-D_GLIB_EXTERN=__attribute__((visibility("default"))) extern' -fno-strict-aliasing -Wno-missing-include-dirs -Wduplicated-branches -Wduplicated-cond -Wformat=2 -Wformat-nonliteral -Wformat-security -Wignored-qualifiers -Wimplicit-function-declaration -Wlogical-op -Wmisleading-indentation -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wnested-externs -Wold-style-definition -Wpointer-arith -Wshadow -Wstrict-prototypes -Wswitch-default -Wswitch-enum -Wundef -Wuninitialized -Wunused -Werror=address -Werror=array-bounds -Werror=empty-body -Werror=implicit -Werror=implicit-fallthrough -Werror=implicit-fallthrough=5 -Werror=init-self -Werror=int-to-pointer-cast -Werror=main -Werror=missing-braces -Werror=missing-declarations -Werror=missing-prototypes -Werror=nonnull -Werror=pointer-to-int-cast -Werror=redundant-decls -Werror=return-type -Werror=sequence-point -Werror=trigraphs -Werror=vla -Werror=write-strings -Wcast-align -Wnull-dereference -fvisibility=hidden -MD -MQ modules/printbackends/libprintbackend-lpr.so.p/gtkprintbackendlpr.c.o -MF modules/printbackends/libprintbackend-lpr.so.p/gtkprintbackendlpr.c.o.d -o modules/printbackends/libprintbackend-lpr.so.p/gtkprintbackendlpr.c.o -c ../modules/printbackends/gtkprintbackendlpr.c
../modules/printbackends/gtkprintbackendlpr.c: In function ‘_cairo_write’:
../modules/printbackends/gtkprintbackendlpr.c:158:3: warning: implicit declaration of function ‘GTK_DEBUG’ [-Wimplicit-function-declaration]
158 | GTK_DEBUG (PRINTING, "LPR Backend: Writing %i byte chunk to temp file", length);
| ^~~~~~~~~
../modules/printbackends/gtkprintbackendlpr.c:158:3: warning: nested extern declaration of ‘GTK_DEBUG’ [-Wnested-externs]
../modules/printbackends/gtkprintbackendlpr.c:158:14: error: ‘PRINTING’ undeclared (first use in this function)
158 | GTK_DEBUG (PRINTING, "LPR Backend: Writing %i byte chunk to temp file", length);
| ^~~~~~~~
../modules/printbackends/gtkprintbackendlpr.c:158:14: note: each undeclared identifier is reported only once for each function it appears in
../modules/printbackends/gtkprintbackendlpr.c: In function ‘lpr_write’:
../modules/printbackends/gtkprintbackendlpr.c:274:22: error: ‘PRINTING’ undeclared (first use in this function)
274 | GTK_DEBUG (PRINTING, "LPR Backend: %s", error->message);
| ^~~~~~~~
[1462/2816] Compiling C++ object subprojects/libsass/src/libsass.so.p/parser.cpp.o
ninja: build stopped: subcommand failed.
Does anyone know why ninja has failed to build GTK on Ubuntu 22.04.1 LTS?
I entered the folder “~/gtk-master/_build” as current before entering at the terminal “ninja” which does execute the build but it fails as shewn. Prior to that I had built the folder “_build” with meson as described in the instructions at the github site for gnome GTK. Thank You!
These turned out to be from missing gtk widgets packages not installed by the official ubuntu software package manager which I later did find out to go away after installing some additional packages for gtk4 widgets and gtk3 widgets
My misunderstanding but really they are separate issues with the ninja build system to work out that are happening because different packages are missing.