Skip to content

Added build instructions for Windows #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 26, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,41 @@ 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:

* 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

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


Requirements everywhere else
----------------------------

Expand Down