[PyQt] PyQt4, Qt on osx SnowLeopard
William Kyngesburye
woklist at kyngchaos.com
Tue Nov 17 18:22:22 GMT 2009
Here's what I do for using a 32bit Qt 4.5.x (binary distribution), with SIP 3.9 and PyQt 4.6. The key is to use the new arch flags in the current SIP and PyQt versions.
For SIP:
export MACOSX_DEPLOYMENT_TARGET=10.6
python configure.py -n -d /Library/Python/2.6/site-packages -b /usr/local/bin -e /usr/local/include -v /usr/local/share/sip --arch=i386 -s MacOSX10.6.sdk
make
sudo make install
For PyQt:
export QTDIR=/Developer/Applications/Qt
python configure.py -d /Library/Python/2.6/site-packages -b /usr/local/bin --use-arch=i386
make
sudo make install
You will get a lot of warnings about "Support for this version of Mac OS X is still preliminary", but they're harmless (so far).
On Nov 17, 2009, at 11:50 AM, Massimo Di Stefano wrote:
> Hi,
>
> Starting on a fresh osx Snow Lepoard installation, what it the procedure to follow to have pyqt up and running ?
>
> i tried to Qt-4.5.3 installer, but it fails with a nerror (no succesfull installation)
> So i tried the last Qt4.6 release candidate (i choose the sdk big download)
> it install without errors, but PyQt fails to build giving the errors :
>
> #error "You are building a 64-bit application, but using a 32-bit version of Qt
>
...
>
> My questions :
>
> what is the procedure to have both qt+pyqt working on snow leopard?
> need i to use the cocoa-Qt4.6-64 bit release candidate
> instead of the sdk disk-image installer ?
>
> thanks for any suggestion!
> Massimo.
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/
First Pogril: Why is life like sticking your head in a bucket filled with hyena offal?
Second Pogril: I don't know. Why IS life like sticking your head in a bucket filled with hyena offal?
First Pogril: I don't know either. Wretched, isn't it?
-HitchHiker's Guide to the Galaxy
More information about the PyQt
mailing list