allquixotic
allquixotic

Reputation: 1559

Qt Creator on MacOS: pkg-config dependencies can't be found

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:

When 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.

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

Answers (1)

allquixotic
allquixotic

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

Related Questions