-
QT_CONFIG -= no-pkg-config
CONFIG += link_pkgconfig
PKGCONFIG += protobuf #Or whatever package you want to try.
/Applications/Other/Qt5.0.2/5.0.2/clang_64/bin/qmake myproject.pro
It runs fine.sh: pkg-config: command not found
and the build fails.launchctl setenv PATH $PATH
as suggested in Environment variables in Mac OS XDoes anyone have any idea how to make this work?
The way I have done it so far is, in the qmake project file I hardcoded the pkgconfig path
mac {
PKG_CONFIG = /usr/local/bin/pkg-config
}
I'm hoping there's a more elegant solution that someone can provide.