2010-10-28 27 views
1

希望有人能幫助我。我對mac和qt是新手,所以請原諒我,如果我問一些愚蠢的問題。所以這個問題。我想在Macbook上安裝PyQt 4.8(Mac OS X 10.6.4)。 首先,我在這個描述中安裝了Qt 4.7,內容爲http://doc.trolltech.com/4.7/install-mac.html。然後我安裝了sip 4.11.2(沒有--arch = i386),這裏是how-to頁面(http://www.expobrain.net/2010/06/22/install-pyqt4-in-snow-leopard)。之後,我嘗試安裝PyQt 4.8(沒有--use-arch = i386),但是出現錯誤。我GOOGLE了它,沒有成功。我不知道該怎麼辦。我嘗試從源代碼構建它,因爲我需要安裝更多的包,比如qimage2ndarray。我聽說用.dmg(二進制)可能會遇到一些麻煩。可能有人可以幫助我。希望我不需要重新安裝整個操作系統。 這裏的錯誤。Mac Qt4:PyQt 4.8安裝錯誤(需要幫助)

Olis-MacBook-Pro:PyQt-mac-gpl-4.8 opetra$ python configure.py build 
Determining the layout of your Qt installation... 
Error: Failed to determine the layout of your Qt installation. Try again using 
the --verbose flag to see more detail about the problem. 

回答

0

好吧,我解決了這個問題。我不得不爲這三者設置arch,在我的情況下爲x86_64。不僅用於SIP和PyQt。沒有它,qt會將PowerPC arch編譯爲默認值。不知道爲什麼,我有一個i5的MacBook Pro 2010。認爲配置會自動識別。