Macos – How to add a Qt SDK in Qt Creator (Mac OS X)

macosqtqt-creator

I need to compile my Qt project using a static version of the Qt SDK.

So I have compiled from source a new SDK using these steps:

configure (+some options)
make
sudo make -j1 install

I think all these steps were successful and I can see the SDK in /usr/local/Trolltech. Then, as indicated on the reference, I have added these lines two my .profile file:

PATH=/usr/local/Trolltech/Qt-4.7.1/bin:$PATH
export PATH

However, when I start Qt Creator, it is not using this new SDK but still using the one that was installed initially. How can I change that and make it use my new SDK?

Best Answer

In QtCreator's preferences, there's "Qt4" item (on the left) where you can specify path to your Qt manually.

Regarding PATH variable changes, they'll only be taken into account if you start QtCreator from Terminal.