When we are building Qt from sources on Mac OS, we are following this instruction:
http://qt-project.org/doc/qt-4.8/install-mac.html
It worked fine on previous versions of Mac but on Yosemite there is a change related to environment variables. It is not related to Qt actually, just these variables are not visible to GUI applications in Yosemite. See the links below, for example:
http://apple.stackexchange.com/questions/152294/shell-environment-variables-not-available-in-gui-apps-even-if-app-launched-via-c
https://discussions.apple.com/thread/6682752
This is why Qt Creator doesn't have access to PATH variable. We need to add Qt version in it manually, make sure you will use Command-Shift-G in Finder while selecting path to qmake, for example, our path to qmake is
/usr/local/Qt-5.4.0/bin/qmake
and Finder doesn't see it by default.
No comments:
Post a Comment