From def25c01ef1c998804b04afcac9949bde810fed7 Mon Sep 17 00:00:00 2001 From: eivindro Date: Tue, 24 Sep 2013 20:16:27 +0200 Subject: [PATCH 1/4] Added build instructions for Windows --- README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/README.md b/README.md index a3081346..10804ae0 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,34 @@ Something along these lines should be effective: $ CXX=g++-4.8 go get github.com/niemeyer/qml +Requirements on Windows +----------------------- + +On windows you need to install the following: + +* Mingw-gcc 4.8.1 +Download the mingw-get-setup.exe from http://www.mingw.org, download and install the mingw32-gcc compiler from within the +setup GUI. + +* Qt 5.1.1 or later +Download Qt 5 binary setup installer for Windows (for Mingw 4.8) from http://qt-project.org and install + +* Go 1.2rc1 or later +Download binary MSI installer for Windows from http://golang.org and install. + +If you fancy building everything yourselves instead of downloading binaries that is entirely possible too :) + +Set the following environment variables: + +* CFLAGS Add Qt include path +* LIBRARY_PATH Add Qt lib path +* PATH And Qt binary path + +And finally from the command line: + +$ go get github.com/niemeyer/qml + + Requirements everywhere else ---------------------------- From 4a277bcd31f05e5d78fd51ddc8ec62889b750edb Mon Sep 17 00:00:00 2001 From: eivindro Date: Tue, 24 Sep 2013 20:54:05 +0200 Subject: [PATCH 2/4] Added the qt private include path to windows requirements. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 10804ae0..f32cb007 100644 --- a/README.md +++ b/README.md @@ -107,7 +107,7 @@ If you fancy building everything yourselves instead of downloading binaries that Set the following environment variables: -* CFLAGS Add Qt include path +* CFLAGS Add Qt include path and the path of the subfolder 'QtCore\5.X.X\QtCore' under the include folder, replaced with your Qt version. * LIBRARY_PATH Add Qt lib path * PATH And Qt binary path From 3459613766ae6c553344258a1bd24177916c202d Mon Sep 17 00:00:00 2001 From: eivindro Date: Wed, 25 Sep 2013 21:03:32 +0200 Subject: [PATCH 3/4] Added example folders and changed CFLAGS to CPATH --- README.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f32cb007..0b869662 100644 --- a/README.md +++ b/README.md @@ -107,11 +107,18 @@ If you fancy building everything yourselves instead of downloading binaries that Set the following environment variables: -* CFLAGS Add Qt include path and the path of the subfolder 'QtCore\5.X.X\QtCore' under the include folder, replaced with your Qt version. -* LIBRARY_PATH Add Qt lib path -* PATH And Qt binary path +* CPATH Add Qt include path and the path of the subfolder 'QtCore\5.X.X\QtCore' under the include folder, replaced with your Qt version. +* LIBRARY_PATH Add Qt lib path +* PATH And Qt binary path -And finally from the command line: +Assmuning you installed Qt in c:\qt\Qt5.1.1\ +that would yield adding the following to the env vars (in environment variables dialog): + +CPATH += c:\qt\Qt5.1.1\5.1.1\mingw48_32\include;c:\qt\Qt5.1.1\5.1.1\mingw48_32\include\QtCore\5.1.1\QtCore +LIBRARY_PATH += c:\qt\Qt5.1.1\5.1.1\mingw48_32\lib +PATH += c:\qt\Qt5.1.1\5.1.1\mingw48_32\bin + +And finally from the command line (you have to reopen the shell for the env var changes to take effect): $ go get github.com/niemeyer/qml From 134b89cd0bf5a8629192859d5835880bb4665860 Mon Sep 17 00:00:00 2001 From: eivindro Date: Wed, 25 Sep 2013 21:20:14 +0200 Subject: [PATCH 4/4] Fixed typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0b869662..dfb926d9 100644 --- a/README.md +++ b/README.md @@ -111,7 +111,7 @@ Set the following environment variables: * LIBRARY_PATH Add Qt lib path * PATH And Qt binary path -Assmuning you installed Qt in c:\qt\Qt5.1.1\ +Assuming you installed Qt in c:\qt\Qt5.1.1\ that would yield adding the following to the env vars (in environment variables dialog): CPATH += c:\qt\Qt5.1.1\5.1.1\mingw48_32\include;c:\qt\Qt5.1.1\5.1.1\mingw48_32\include\QtCore\5.1.1\QtCore