开发者

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

开发者 https://www.devze.com 2023-02-06 19:11 出处:网络
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:

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 the开发者_如何转开发se 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?


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消