Reputation: 1559
I already tried all the solutions here, but I continue to get the following error when I issue the command "Run qmake" on my project from Qt Creator on Qt 5.6.1:
Project ERROR: grpc++ development package not found
... Yet, on the console, qmake && make clean && make
successfully builds the project with no errors.
which qmake
returns /usr/local/bin/qmake
and qmake --version
returns
QMake version 3.0
Using Qt version 5.6.1 in /usr/local/Cellar/qt5/5.6.1-1/lib
Here is my environment:
grpc++
, libsndfile
, protobuf
all installed via Homebrew in /usr/local
and the .pc
files are in /usr/local/lib/pkgconfigWhen I open up a new terminal and type pkg-config --cflags --libs grpc++
, I get the correct result back with no error message.
I'm trying to build this software, of which I am the primary author/maintainer: https://github.com/allquixotic/kynnaugh-cc
See the .pro file for details of how I'm telling it to use pkg-config.
launchd.conf
hack from here (and rebooted the Mac after updating it)./etc/paths.d/local
hack from the same question, to no avail.QT_CONFIG -= no-pkg-config
.Are there any other ways I can attempt to diagnose the problem, or can you spot an error in my .pro file, or is there a better solution to this problem than what I've attempted thus far?
I'm asking this as a new question because the solutions in that other question don't work, so I may very well be having a completely different problem despite extremely similar symptoms.
Upvotes: 1
Views: 1237
Reputation: 1559
Turns out the PATH variable in Qt Creator wasn't picking up /usr/local/bin. Adding it manually to the project config fixed my issue.
Upvotes: 3