Skip to content

Building on Windows

Raghavendra Balgi edited this page Jun 16, 2019 · 1 revision

The go-gtk package requires additional dependencies (https://github.com/mattn/go-gtk)

On Linux -

apt-get install libgtk2.0-dev libglib2.0-dev libgtksourceview2.0-dev

On Windows -

  1. Install msys2/mingw64 from https://www.gtk.org/download/windows.php
  2. Install other dependencies that are required for gtk2 (The instructions are on the link above)

Note: All the below commands should be run in a mingw64 console (msys2 mingw64 shell launcher)

$ pacman -S mingw-w64-x86_64-pkg-config // This set is required (https://stackoverflow.com/questions/49866513/pkg-config-errors-when-compiling-cgo-program-with-mingw64#) $ export CGO_LDFLAGS_ALLOW="-Wl,-luuid" $ set your GOPATH $ go install -x ./...

Other noteworthy link if you run into issues -

Clone this wiki locally