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
    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
    export PATH="$PREFIX/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    meson \
        --buildtype=release \
        --prefix=$PREFIX \
    sudo ninja install
    sudo chown -R $USER .