1.9 KiB
#Qt binding for Go
##Windows (x86):
- Install Go >= 1.4 (x86)
- Install Qt 5.4.0
- Add the directory that contains "gcc" to your PATH
C:\Qt\Qt5.4.0\Tools\mingw491_32\bin
- Download the qt binding
go get -d github.com/therecipe/qt
- Setup your build environment (edit the file if necessary)
cgo_windows_386.go
- Install the qt binding (failed ? -> go back to 5)
go install github.com/therecipe/qt
- Test the example (edit the file if necessary)
example/windows/deploy_windows.bat
##Mac OS X (x64):
- Install Go >= 1.4
- Install Qt 5.4.0
https://download.qt-project.org/official_releases/qt/5.4/5.4.0/qt-opensource-mac-x64-clang-5.4.0.dmg
-
Install Xcode >= 6.1
-
Download the qt binding
go get -d github.com/therecipe/qt
- Setup your build environment (edit the file if necessary)
cgo_darwin_amd64.go
- Install the qt binding (failed ? -> go back to 5)
go install github.com/therecipe/qt
- Test the example (edit the file if necessary)
example/mac/deploy_mac.sh
##Linux (x86/x64):
- Install Go >= 1.4 (x86/x64)
- Install Qt 5.4.0
(x86) https://download.qt-project.org/official_releases/qt/5.4/5.4.0/qt-opensource-linux-x86-5.4.0.run
(x64) https://download.qt-project.org/official_releases/qt/5.4/5.4.0/qt-opensource-linux-x64-5.4.0.run
- Install "g++"
sudo apt-get install build-essential
- Install OpenGL libraries
sudo apt-get install mesa-common-dev
- Download the qt binding
go get -d github.com/therecipe/qt
- Setup your build environment (edit the file if necessary)
cgo_linux_*.go
- Install the qt binding (failed ? -> go back to 6)
go install github.com/therecipe/qt
- Test the example (edit the file if necessary)
example/linux/deploy_linux_*.sh