02-06-2022, 05:42 AM
(01-09-2022, 01:58 PM)g40 Wrote: @Zombie Feynman Can you post your gtk4 build command line? Mine keeps failing with various complaints and I do not seem to be able to tell it to build for Wayland. Using instructions from https://docs.gtk.org/gtk4/building.html.
First of all, sorry for the late reply.
Since GTK4 is now in Mobian's repos, I haven't touched this self-build in a while, but in any case I compiled GTK in /home/mobian/build by setting the following variables:
Code:
export CPPFLAGS="-I/home/mobian/build/include ${CPPFLAGS}" \
LDFLAGS="-L/home/mobian/build/lib -L/home/mobian/build/lib/aarch64-linux-gnu ${LDFLAGS}" \
PKG_CONFIG_PATH="/home/mobian/build/lib/pkgconfig:/home/mobian/build/share/pkgconfig:/home/mobian/build/lib/aarch64-linux-gnu/pkgconfig:${PKG_CONFIG_PATH}" \
LD_LIBRARY_PATH="/home/mobian/build/lib:/home/mobian/build/lib/aarch64-linux-gnu:${LD_LIBRARY_PATH}" \
PATH="/home/mobian/build/bin:${PATH}" \
GSETTINGS_SCHEMA_DIR="/home/mobian/build/share/glib-2.0/schemas"
Apart from that I mostly just followed that same guide. You need to self-compile atk, gdk-pixbuf, glib, gobject-introspection, libepoxy, pango and wayland-protocols before GTK itself. Every invocation of meson should have --prefix=/home/mobian/build as an option, and for GTK itself, you need to disable the x11 backend by adding -Dx11-backend=false.