CustomGtk

From Inkscape Wiki
Jump to navigation Jump to search

This page describes how to install a patched Gtk for development.

On macOS with MacPorts

  1. Install everything as usual, see CompilingMacOsX
  2. sudo port install meson
  3. Get Gtk source from stable branch
    git clone https://gitlab.gnome.org/GNOME/gtk.git
    cd gtk
    git checkout gtk-3-24
    
  4. Optional: Apply patches
  5. Build and install directly into MacPorts tree, overwriting the system package
    mkdir -p build-meson
    cd build-meson
    
    PREFIX=/opt/local
    export PATH="$PREFIX/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    
    meson \
        --buildtype=release \
        --prefix=$PREFIX \
        ..
    
    ninja
    sudo ninja install
    sudo chown -R $USER .