<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="font-family: Times; "><pre>Hi,</pre><pre>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?</pre><pre><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="white-space: normal;"><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre;"><br><blockquote type="cite"><span class="Apple-style-span" style="font-family: Times; white-space: normal; "><pre>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 &lt;<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt">ccaron at fattoc.com</a>&gt; wrote:

&gt;<i> I can't seem to compile PyQt on Snow Leopard.
</i>&gt;<i> I installed Snow Leopard with the xcode that came with the disk.
</i>&gt;<i>
</i>&gt;<i> Built Qt 4.5.2: ./configure -opensource -framework -no-qt3support -fast
</i>&gt;<i> Built SIP 4.8.2
</i>&gt;<i> PyQt 4.5.4: When I run python configure.py it determines that only
</i>&gt;<i> PyQt4.QtCore will be built. I looked in configure.py and all the other
</i>&gt;<i> cfgtext_* fail to build with the following error message:
</i>&gt;<i>
</i>&gt;<i> ccaron$ g++ -DQT_NO_DEBUG -DQT_GUI_LIB -I.
</i>&gt;<i> -I/usr/local/Trolltech/Qt-4.5.2/mkspecs/default
</i>&gt;<i> -I/usr/local/Trolltech/Qt-4.5.2/lib/QtGui.framework/Headers
</i>&gt;<i> -I/usr/local/Trolltech/Qt-4.5.2/include -pipe -Os -w cfgtest_QtGui.cpp -o
</i>&gt;<i> cfgtest_QtGui -F/usr/local/Trolltech/Qt-4.5.2/lib
</i>&gt;<i> -L/usr/local/Trolltech/Qt-4.5.2/lib -headerpad_max_install_names -framework
</i>&gt;<i> QtGui -L/usr/local/Trolltech/Qt-4.5.2/lib
</i>&gt;<i> -F/usr/local/Trolltech/Qt-4.5.2/lib -framework Carbon -framework AppKit
</i>&gt;<i> -framework QtCore -L/usr/local/Trolltech/Qt-4.5.2/lib -lz -lm -framework
</i>&gt;<i> ApplicationServices
</i>&gt;<i> In file included from
</i>&gt;<i> /usr/local/Trolltech/Qt-4.5.2/include/QtGui/qmatrix.h:46,
</i>&gt;<i>                  from
</i>&gt;<i> /usr/local/Trolltech/Qt-4.5.2/include/QtGui/qbrush.h:49,
</i>&gt;<i>                  from
</i>&gt;<i> /usr/local/Trolltech/Qt-4.5.2/include/QtGui/qpalette.h:47,
</i>&gt;<i>                  from
</i>&gt;<i> /usr/local/Trolltech/Qt-4.5.2/lib/QtGui.framework/Headers/qwidget.h:48,
</i>&gt;<i>                  from cfgtest_QtGui.cpp:1:
</i>&gt;<i> /usr/local/Trolltech/Qt-4.5.2/include/QtGui/qregion.h: In member function
</i>&gt;<i> ‘OpaqueRgnHandle* QRegion::handle(bool) const’:
</i>&gt;<i> /usr/local/Trolltech/Qt-4.5.2/include/QtGui/qregion.h:158: error: ‘toQDRgn’
</i>&gt;<i> was not declared in this scope
</i>&gt;<i>
</i>&gt;<i> What am I doing wrong?
</i>&gt;<i>
</i>&gt;<i> _______________________________________________
</i>&gt;<i> PyQt mailing list    <a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt">PyQt at riverbankcomputing.com</a>
</i>&gt;<i> <a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a></i></pre></span></blockquote><div><br></div></span></font></span></font></pre></span></body></html>