-
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 X Does 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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.