Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nrtkbb/81b94c7f49c8fb7b26c1ef045c992c05 to your computer and use it in GitHub Desktop.
Save nrtkbb/81b94c7f49c8fb7b26c1ef045c992c05 to your computer and use it in GitHub Desktop.
# msys2 install
http://www.msys2.org/
# msys2のアップデート
pacman -Syu
強制終了
pacman -Syu
# GTK
pacman -S mingw-w64-x86_64-gtk3
pacman -S mingw-w64-x86_64-gtk2
pacman -S mingw-w64-x86_64-gtksourceview2
pacman -S mingw-w64-x86_64-gtksourceview3
pacman -S glib2-devel
# git
pacman -S git
# gcc
pacman -S base-devel mingw-w64-i686-toolchain mingw-w64-x86_64-toolchain
msys2の再起動
# pango.pcを作成
$ vim /usr/lib/pkgconfig/pango.pc
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: pango
Description: pango
Version: 1.0
Libs: -L/mingw64/lib -LC:/msys64/mingw64/lib -lpango-1.0 -lm -lgobject-2.0 -lffi -lglib-2.0 -lintl -pthread -lws2_32 -lole32 -lwinmm -lshlwapi -lpcre -lintl -lpcre
Cflags: -mms-bitfields -I/mingw64/include/pango-1.0 -I/mingw64/include/glib-2.0 -I/mingw64/lib/glib-2.0/include -I/mingw64/include
# go-gtk
go get github.com/mattn/go-gtk
cd ${GOPATH}/src/github.com/mattn/go-gtk
make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment