-
Notifications
You must be signed in to change notification settings - Fork 30
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)
apt-get install libgtk2.0-dev libglib2.0-dev libgtksourceview2.0-dev
- Install msys2/mingw64 from https://www.gtk.org/download/windows.php
- 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 -