cutego/README.md

66 lines
1.7 KiB
Markdown
Raw Normal View History

2015-10-24 18:18:24 +03:00
#Qt binding for Go (Windows / Mac OS X / Linux / Android)
2014-12-02 23:51:56 +03:00
2015-10-24 18:18:24 +03:00
##Windows (x86)
(currently not working) -> https://support.microsoft.com/kb/830473
2014-12-02 23:51:56 +03:00
2015-10-24 18:18:24 +03:00
1. Install Go >= 1.5.1
> https://storage.googleapis.com/golang/go1.5.1.windows-386.msi
2014-12-02 23:51:56 +03:00
2015-10-24 18:18:24 +03:00
2. Install Qt 5.5.1 ("C:\Qt\Qt5.5.1")
> https://download.qt.io/official_releases/qt/5.5/5.5.1/qt-opensource-windows-x86-android-5.5.1.exe
2014-12-02 23:51:56 +03:00
3. Add the directory that contains "gcc" to your PATH
2015-10-24 18:18:24 +03:00
> C:\Qt\Qt5.5.1\Tools\mingw492_32\bin
2014-12-02 23:51:56 +03:00
4. Download the qt binding
2015-10-24 18:18:24 +03:00
> go get github.com/therecipe/qt
2014-12-02 23:51:56 +03:00
2015-10-24 18:18:24 +03:00
5. Generate, install and test
> github.com/therecipe/qt/internal/binding/make.sh
2014-12-02 23:51:56 +03:00
2015-10-24 18:18:24 +03:00
##Mac OS X (x64)
2014-12-02 23:51:56 +03:00
2015-10-24 18:18:24 +03:00
1. Install Go >= 1.5.1
> https://storage.googleapis.com/golang/go1.5.1.darwin-amd64.pkg
2014-12-02 23:51:56 +03:00
2015-10-24 18:18:24 +03:00
2. Install Qt 5.5.1 ("/usr/local/Qt5.5.1")
> https://download.qt.io/official_releases/qt/5.5/5.5.1/qt-opensource-mac-x64-android-5.5.1.dmg
2014-12-02 23:51:56 +03:00
2015-10-24 18:18:24 +03:00
3. Install Xcode >= 7.0.1
2014-12-02 23:51:56 +03:00
2015-10-24 18:18:24 +03:00
4. Download the qt binding
> go get github.com/therecipe/qt
2014-12-02 23:51:56 +03:00
2015-10-24 18:18:24 +03:00
5. Generate, install and test
> github.com/therecipe/qt/internal/binding/make.sh
2014-12-02 23:51:56 +03:00
2015-10-24 18:18:24 +03:00
##Linux (x86/x64)
2014-12-02 23:51:56 +03:00
2015-10-24 18:18:24 +03:00
1. Install Go >= 1.5.1
2014-12-02 23:51:56 +03:00
2015-10-24 18:18:24 +03:00
>(x86) https://storage.googleapis.com/golang/go1.5.1.linux-386.tar.gz
2014-12-02 23:51:56 +03:00
2015-10-24 18:18:24 +03:00
>(x64) https://storage.googleapis.com/golang/go1.5.1.linux-amd64.tar.gz
2014-12-02 23:51:56 +03:00
2015-10-24 18:18:24 +03:00
2. Install Qt 5.5.1 ("/usr/local/Qt5.5.1")
2014-12-02 23:51:56 +03:00
2015-10-24 18:18:24 +03:00
>(x86) https://download.qt.io/official_releases/qt/5.5/5.5.1/qt-opensource-linux-x86-android-5.5.1.run
2014-12-02 23:51:56 +03:00
2015-10-24 18:18:24 +03:00
>(x64) https://download.qt.io/official_releases/qt/5.5/5.5.1/qt-opensource-linux-x64-android-5.5.1.run
2014-12-02 23:51:56 +03:00
3. Install "g++"
2015-10-24 18:18:24 +03:00
> sudo apt-get install g++
2014-12-02 23:51:56 +03:00
2015-10-24 18:18:24 +03:00
4. Install OpenGL dependencies
2014-12-02 23:51:56 +03:00
> sudo apt-get install mesa-common-dev
5. Download the qt binding
2015-10-24 18:18:24 +03:00
> go get github.com/therecipe/qt
2014-12-02 23:51:56 +03:00
2015-10-24 18:18:24 +03:00
6. Generate, install and test
> github.com/therecipe/qt/internal/binding/make.bat
2014-12-02 23:51:56 +03:00
2015-10-24 18:18:24 +03:00
##Android (armv7)
2014-12-02 23:51:56 +03:00
2015-10-24 18:18:24 +03:00
TBA