[PyQt] Snow Leopard

Celil Rufat celil.rufat at gmail.com
Tue Sep 1 18:17:30 BST 2009


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/20090901/6e2bd72b/attachment.html


More information about the PyQt mailing list