[PyQt] Snow Leopard
Xiao Yu
xiao at xiao-yu.com
Tue Sep 8 14:19:02 BST 2009
Hi,
Sorry I'm a bit of a n00b when it comes to this. What are we to
compile in i386? Since configure.py says the x86_64 is missing from Qt
Core, I'm guessing I'd have to set up PyQt in 32 bits? How do I do
that exactly? Is there any extra things I have to worry about when
writing/running python programs using PyQt?
> I am also experiencing problems compiling PyQt on Snow Leopard.
>
> For me the error occured at the linking stage. The default arch for
> compiling on SnowLeopard is x86_64, whereas most of the underlying
> libraries
> are i386. To link correctly make sure you compile under arch=i386.
>
>
> On Tue, Sep 1, 2009 at 9:45 AM, Christian Caron <ccaron at
> fattoc.com> wrote:
>
> > I can't seem to compile PyQt on Snow Leopard.
> > I installed Snow Leopard with the xcode that came with the disk.
> >
> > Built Qt 4.5.2: ./configure -opensource -framework -no-qt3support -
> fast
> > Built SIP 4.8.2
> > PyQt 4.5.4: When I run python configure.py it determines that only
> > PyQt4.QtCore will be built. I looked in configure.py and all the
> other
> > cfgtext_* fail to build with the following error message:
> >
> > ccaron$ g++ -DQT_NO_DEBUG -DQT_GUI_LIB -I.
> > -I/usr/local/Trolltech/Qt-4.5.2/mkspecs/default
> > -I/usr/local/Trolltech/Qt-4.5.2/lib/QtGui.framework/Headers
> > -I/usr/local/Trolltech/Qt-4.5.2/include -pipe -Os -w
> cfgtest_QtGui.cpp -o
> > cfgtest_QtGui -F/usr/local/Trolltech/Qt-4.5.2/lib
> > -L/usr/local/Trolltech/Qt-4.5.2/lib -headerpad_max_install_names -
> framework
> > QtGui -L/usr/local/Trolltech/Qt-4.5.2/lib
> > -F/usr/local/Trolltech/Qt-4.5.2/lib -framework Carbon -framework
> AppKit
> > -framework QtCore -L/usr/local/Trolltech/Qt-4.5.2/lib -lz -lm -
> framework
> > ApplicationServices
> > In file included from
> > /usr/local/Trolltech/Qt-4.5.2/include/QtGui/qmatrix.h:46,
> > from
> > /usr/local/Trolltech/Qt-4.5.2/include/QtGui/qbrush.h:49,
> > from
> > /usr/local/Trolltech/Qt-4.5.2/include/QtGui/qpalette.h:47,
> > from
> > /usr/local/Trolltech/Qt-4.5.2/lib/QtGui.framework/Headers/
> qwidget.h:48,
> > from cfgtest_QtGui.cpp:1:
> > /usr/local/Trolltech/Qt-4.5.2/include/QtGui/qregion.h: In member
> function
> > ‘OpaqueRgnHandle* QRegion::handle(bool) const’:
> > /usr/local/Trolltech/Qt-4.5.2/include/QtGui/qregion.h:158: error:
> ‘toQDRgn’
> > was not declared in this scope
> >
> > What am I doing wrong?
> >
> > _______________________________________________
> > 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/20090908/f689c4f6/attachment.html
More information about the PyQt
mailing list