Reputation: 2444
Attempting to run qt
on my Mac, using the following homebrew commands:
brew install qt
brew install qt-creator
no errors occured. However, when I tried running qt-creator
, I noticed I had to manually link qmake
. When I attempted to run my program, I got the following error:
:-1: error: failed to parse default search paths from compiler output
After attempting to add qt to the environment variables, it did not work.
What I finally resorted to was the following:
brew remove qt
brew install [email protected]
Still, I had to manually link qmake
, but this time it worked.
Question: Why does [email protected]
work, and not qt
? Is there a fix/way to get qt
to work?
Upvotes: 3
Views: 2027
Reputation: 2488
I just ran into this issue, with a brand new homebrew install of qt
and qt-creator
.
The short answer is make sure your selected "Kit" is using Clang. It can default to gcc and cause this error.
Longer answer:
/usr/local/Cellar/qt/5.11.1/bin/qmake
(⌘+SHIFT+G in the open-file dialog).Desktop (default)
profile.
Upvotes: 2