go-qml / qml

QML support for the Go language
Other
1.96k stars 187 forks source link

When configuring for OSX 10.9.x (brew install qt5 --HEAD) QT5VERSION is incorrectly set #33

Closed raff closed 10 years ago

raff commented 10 years ago

The following command doesn't work after "brew install qt5 --HEAD":

> QT5VERSION=`pkg-config --cflags Qt5Core | sed 's/^.*\(5\..\..\).*/\1/g'`

The output of pkg-config --cflags looks like this (no version number)

> echo $QT5VERSION
-I/usr/local/Cellar/qt5/HEAD/include/QtCore -I/usr/local/Cellar/qt5/HEAD/include

A better command is this:

> QT5VERSION=`pkg-config --modversion Qt5Core`

The output of pkg-config --modversion looks like:

>pkg-config --modversion Qt5Core
5.2.2