Skip to content
Lazyhacker edited this page Nov 28, 2020 · 11 revisions

Welcome to the gotk3 wiki!

Installation Instructions

Go

Go 1.8 or newer is required.

GTK, GLib, Cairo

gotk3 currently requires GTK 3.6-3.22, GLib 2.36-2.40, and Cairo 1.10 or 1.12:

gotk3

NOTE: The build process uses the tagging scheme gtk_MAJOR_MINOR to specify a build targeting any particular GTK version (for example, gtk_3_10). Building with no tags defaults to targeting the latest supported GTK release (3.22).

The gtk package requires the cairo, glib, and gdk packages as dependencies, so only one go get is necessary for a complete installation.

To install gotk3 targeting the latest GTK version:

$ go get github.com/gotk3/gotk3/gtk

To install gotk3 targeting your version of GTK:

$ go get -tags gtk_X_XX github.com/gotk3/gotk3/gtk

To rebuild gotk3 for another GTK version:

$ go install -tags gtk_X_XX github.com/gotk3/gotk3/gtk