[PyQt] Need a recipe for building [solved]

Brian Brown rbb at techgame.net
Thu Oct 1 15:19:38 BST 2009


One last thing, after building successfully, I would receive the  
following error when trying to use PyQt:

/Library/Python/2.6/site-packages/PyQt4/QtCore.so: mach-o, but wrong  
architecture


I'd read that this had to do with Python defaulting to running in 64- 
bit mode, so I tried building sip/PyQt with the flags:

sip-4.9> python ./configure --arch=i386 --arch=x86_64

PyQt-4.6> python ./configure --use-arch=i386 --arch=x86_64

... this built without issues and works fine with all the examples  
from the PyQt book, for example.

Thanks again,

- Brian

On Sep 30, 2009, at 3:36 PM, Brian Brown wrote:

>
> On Sep 30, 2009, at 2:43 PM, Phil Thompson wrote:
>>
>>
>> For all stable releases of Qt.
>
> Ok, thanks Phil. I was able to install the stable Qt 4.5.2 on Snow  
> Leopard by installing the packages individually and not installing  
> examples, which is what is breaking their installer on 10.6. Then  
> sip and PyQt installed as expected with the arch flags.
>
> Cheers,
>
> - Brian
>
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20091001/35c26c4c/attachment.html


More information about the PyQt mailing list