This is a bit of a newbie question. I am trying to add the OpenCV libraries to a QT project.
This question says the link flags are given by
pkg-confi
In the newer version of Qt, this needs to be done to avoid a package not found error:
QT_CONFIG -= no-pkg-config CONFIG += link_pkgconfig PKGCONFIG += protobuf #or whatever package here
Also had to do this for Mac:
mac { PKG_CONFIG = /usr/local/bin/pkg-config }