cutego/README.md
2015-01-20 22:09:55 +01:00

1.9 KiB

#Qt binding for Go

##Windows (x86):

  1. Install Go >= 1.4 (x86)

https://golang.org/dl/

  1. Install Qt 5.4.0

https://download.qt-project.org/official_releases/qt/5.4/5.4.0/qt-opensource-windows-x86-mingw491_opengl-5.4.0.exe

  1. Add the directory that contains "gcc" to your PATH

C:\Qt\Qt5.4.0\Tools\mingw491_32\bin

  1. Download the qt binding

go get -d github.com/therecipe/qt

  1. Setup your build environment (edit the file if necessary)

cgo_windows_386.go

  1. Install the qt binding (failed ? -> go back to 5)

go install github.com/therecipe/qt

  1. Test the example (edit the file if necessary)

example/windows/deploy_windows.bat

##Mac OS X (x64):

  1. Install Go >= 1.4

https://golang.org/dl/

  1. 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

  1. Install Xcode >= 6.1

  2. Download the qt binding

go get -d github.com/therecipe/qt

  1. Setup your build environment (edit the file if necessary)

cgo_darwin_amd64.go

  1. Install the qt binding (failed ? -> go back to 5)

go install github.com/therecipe/qt

  1. Test the example (edit the file if necessary)

example/mac/deploy_mac.sh

##Linux (x86/x64):

  1. Install Go >= 1.4 (x86/x64)

https://golang.org/dl/

  1. 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

  1. Install "g++"

sudo apt-get install build-essential

  1. Install OpenGL libraries

sudo apt-get install mesa-common-dev

  1. Download the qt binding

go get -d github.com/therecipe/qt

  1. Setup your build environment (edit the file if necessary)

cgo_linux_*.go

  1. Install the qt binding (failed ? -> go back to 6)

go install github.com/therecipe/qt

  1. Test the example (edit the file if necessary)

example/linux/deploy_linux_*.sh