2
votes

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?

2

2 Answers

2
votes

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.

0
votes

To allow Creator to find the Qt installation in PATH, you need to set the PATH variable for GUI apps. Here's some discussion on how to set it in OS X:

https://serverfault.com/questions/16355/how-to-set-global-path-on-os-x

Look for modification to "environment.plist".