Skip to content

Commit fcf0740

Browse files
committed
Merge pull request #87 from nf/v1
Update requirements for OS X.
2 parents 7b344dd + f84f9ae commit fcf0740

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

README.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -105,21 +105,25 @@ These commands depend on the following file, installed by setup.sh:
105105
Requirements on Mac OS X
106106
------------------------
107107

108-
On Mac OS X you'll need gcc (not a symlinked clang, as it complains about `-std=c++11`), and
109-
must specify the `CXX`, `PKG_CONFIG_PATH`, and `CGO_CPPFLAGS` environment variables.
108+
On Mac OS X you'll need QT5. It's easiest to install with Homebrew, a
109+
third-party package management system for OS X.
110110

111-
Something along these lines should be effective:
111+
Installation instructions for Homebrew are here:
112112

113-
$ brew tap homebrew/versions
114-
$ brew install gcc48 qt5
113+
http://brew.sh/
115114

116-
$ export PKG_CONFIG_PATH=`brew --prefix qt5`/lib/pkgconfig
117-
$ QT5VERSION=`pkg-config --modversion Qt5Core`
118-
$ CXX=g++-4.8 go get gopkg.in/qml.v0
115+
Then, install the qt5 and pkg-config packages:
116+
117+
$ brew install qt5 pkg-config
118+
119+
Then, force brew to "link" qt5 (this makes it available under /usr/local):
120+
121+
$ brew link --force qt5
122+
123+
And finally, fetch and install go-qml:
124+
125+
$ go get gopkg.in/qml.v0
119126

120-
For Mac OS X Mavericks you may need to use `brew install qt5 --HEAD` and check that QT5VERSION
121-
is something reasonable like `5.2.0`, `ls /usr/local/Cellar/qt5/HEAD/include/QtCore/ | grep '^5'`
122-
should also work.
123127

124128
Requirements on Windows
125129
-----------------------

0 commit comments

Comments
 (0)