Setup
- Using Qt Creator on Mac OSX mountain lion.
- Installed packages in /usr/local using homebrew.
- /usr/local/bin/pkg-config exists.
- Want to use pkgconfig through the project file
-
QT_CONFIG -= no-pkg-config
CONFIG += link_pkgconfig
PKGCONFIG += protobuf #Or whatever package you want to try.
- /usr/local/bin being in the path, when I run
/Applications/Other/Qt5.0.2/5.0.2/clang_64/bin/qmake myproject.pro
It runs fine. - When I try to build the project through Qt Creator I see the error
sh: pkg-config: command not found
and the build fails. - I already tried
launchctl setenv PATH $PATH
as suggested in Environment variables in Mac OS X
Does anyone have any idea how to make this work?