Go言語(Windows)でQt(github.com/therecipe/qt)使ってみる
Go言語(Windows)にQtモジュールインストールして
exampleのテストまでできたので手順のメモ
# 環境
> go version go version go1.10 windows/amd64
以下を入れておく
> go get -u -v github.com/therecipe/qt/cmd/...
インストールガイドではインストーラの方法(Official Version)があるが、
環境作るのが面倒くさそうだったのでmsys2の方法でやった。
# msys2-x86_64をインストール
C:\msys64以下に
- mingw64.exe
- mingw32.exe
- msys2.exe
があるがmingw64.exeを起動する。
# github.com/therecipe/qt のインストールとexampleの実行
# bash上で以下を実行 # 以下でMINGW64を確認 $ echo $MSYSTEM MINGW64 # MSYS ではないこと # $ echo $MSYSTEM # MSYS $ pacman -Syyu $ pacman -S mingw-w64-x86_64-qt-creator mingw-w64-x86_64-qt5 # $ pacman -S mingw-w64-x86_64-qt-creator mingw-w64-x86_64-qt5-static # %GOPATH%\bin\qtsetup # 環境に合わせる $ cd /c/Users/????/go/bin/ $ ./qtsetup.exe # テスト $ go get -d -v github.com/therecipe/examples/... $ cd $GOPATH/src/github.com/therecipe/examples $ qtdeploy test desktop ./basic/widgets/