I am also experiencing problems compiling PyQt on Snow Leopard. <br><br>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.<br>
<br><br><div class="gmail_quote">On Tue, Sep 1, 2009 at 9:45 AM, Christian Caron <span dir="ltr"><<a href="mailto:ccaron@fattoc.com" target="_blank">ccaron@fattoc.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style="word-wrap: break-word;">I can't seem to compile PyQt on Snow Leopard.<div><br>
</div><div>I installed Snow Leopard with the xcode that came with the disk.</div><div><br></div><div>Built Qt 4.5.2: <span style="font-family: Verdana,Arial,'Bitstream Vera Sans',Helvetica,sans-serif; font-size: 13px;">./configure -opensource -framework -no-qt3support -fast </span></div>
<div><font size="3" face="Verdana, Arial, 'Bitstream Vera Sans', Helvetica, sans-serif"><span style="font-size: 13px;">Built SIP 4.8.2</span></font></div><div><font size="3" face="Verdana, Arial, 'Bitstream Vera Sans', Helvetica, sans-serif"><span style="font-size: 13px;">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: </span></font></div>
<div><font size="3" face="Verdana, Arial, 'Bitstream Vera Sans', Helvetica, sans-serif"><span style="font-size: 13px;"><br></span></font></div><div><font size="3" face="Verdana, Arial, 'Bitstream Vera Sans', Helvetica, sans-serif"><span style="font-size: 13px;"><span style="font-family: Helvetica; font-size: medium;"><div>
<font size="4" face="'Courier New'"><span style="font-size: 14px;">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</span></font></div>
<div><font size="4" face="'Courier New'"><span style="font-size: 14px;">In file included from /usr/local/Trolltech/Qt-4.5.2/include/QtGui/qmatrix.h:46,</span></font></div><div><font size="4" face="'Courier New'"><span style="font-size: 14px;"> from /usr/local/Trolltech/Qt-4.5.2/include/QtGui/qbrush.h:49,</span></font></div>
<div><font size="4" face="'Courier New'"><span style="font-size: 14px;"> from /usr/local/Trolltech/Qt-4.5.2/include/QtGui/qpalette.h:47,</span></font></div><div><font size="4" face="'Courier New'"><span style="font-size: 14px;"> from /usr/local/Trolltech/Qt-4.5.2/lib/QtGui.framework/Headers/qwidget.h:48,</span></font></div>
<div><font size="4" face="'Courier New'"><span style="font-size: 14px;"> from cfgtest_QtGui.cpp:1:</span></font></div><div><font size="4" face="'Courier New'"><span style="font-size: 14px;">/usr/local/Trolltech/Qt-4.5.2/include/QtGui/qregion.h: In member function ‘OpaqueRgnHandle* QRegion::handle(bool) const’:</span></font></div>
<div><font size="4" face="'Courier New'"><span style="font-size: 14px;">/usr/local/Trolltech/Qt-4.5.2/include/QtGui/qregion.h:158: error: ‘toQDRgn’ was not declared in this scope</span></font></div><div><font face="'Courier New', Arial, 'Bitstream Vera Sans', Helvetica, sans-serif"><br>
</font></div><div>What am I doing wrong?</div></span></span></font></div></div><br>_______________________________________________<br>
PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com" target="_blank">PyQt@riverbankcomputing.com</a><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br></blockquote></div><br>