# Install sudo apt install ninja-build sudo apt install meson # or `pip install meson` if too old # You might find along the way you need some other dependencies sudo apt install libgstreamer-plugins-bad1.0-dev # Need to build Glib first: # https://download.gnome.org/sources/glib/2.71/glib-2.71.2.tar.xz # In glib2 source dir: meson setup builddir meson compile -c builddir meson install -c builddir # Need to build Glib-networking to get TLS # https://download.gnome.org/sources/glib-networking/2.70/ # sudo apt install gsettings-desktop-schemas-dev # sudo apt install libproxy-dev # sudo apt install cmake # In the glib-networking dir: meson setup builddir cd builddir ninja ninja install # For GTK4, in Gtk4 source dir # Get build options: meson configure # To build with `gtk_doc=true` option pip install gi-docgen sudo apt install gir1.2-graphene-1.0 libgraphene-1.0-dev # Omit prefix to let it install to install to system `/usr/local/` meson setup -Dgtk_doc=true --prefix $HOME/gtk4 builddir # Might need to install some deps like libjpeg, or sudo apt install libgstreamer1.0-dev cd builddir ninja # Documentation will now be in docs/ # For example: gtk-4.6.1/docs/reference/gtk/gtk4/index.html # There are examples in source under examples/ directory # Install to prefix (use `sudo` if doing system install) ninja install