2010-10-28 33 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。认为配置会自动识别。