Skip to content

update requirements for OS X #87

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 1 commit into from
Aug 20, 2014
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
26 changes: 15 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,21 +105,25 @@ These commands depend on the following file, installed by setup.sh:
Requirements on Mac OS X
------------------------

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

Something along these lines should be effective:
Installation instructions for Homebrew are here:

$ brew tap homebrew/versions
$ brew install gcc48 qt5
http://brew.sh/

$ export PKG_CONFIG_PATH=`brew --prefix qt5`/lib/pkgconfig
$ QT5VERSION=`pkg-config --modversion Qt5Core`
$ CXX=g++-4.8 go get gopkg.in/qml.v0
Then, install the qt5 and pkg-config packages:

$ brew install qt5 pkg-config

Then, force brew to "link" qt5 (this makes it available under /usr/local):

$ brew link --force qt5

And finally, fetch and install go-qml:

$ go get gopkg.in/qml.v0

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

Requirements on Windows
-----------------------
Expand Down