[PyQt] Error building PyQt 4.8.1 as universal on OS X 10.5.8

Brian Zambrano brianz at gmail.com
Fri Dec 17 20:48:29 GMT 2010

Building a universal version of my commercial PyQt has worked for me in the
past with these steps:


$ python configure.py --universal
$ make && sudo make install


$ python configure.py --confirm-license
$ make && sudo make install

I just upgraded to Qt 4.7, and am trying to build PyQt 4.8.1 with sip
4.11.2.  I'm on a 32-bit Intel mac mini with OS X 10.5.8.

It looks like a symbol is missing, but I'm not sure if that is from Qt or

$ cd PyQt-mac-commercial-4.8.1
$ make

Determining the layout of your Qt installation...
/usr/bin/qmake -spec macx-g++ -o qtdirs.mk qtdirs.pro
make -f qtdirs.mk
g++ -c -pipe -g -gdwarf-2 -arch ppc -arch i386 -Wall -W -DQT_CORE_LIB
-DQT_SHARED -I/usr/l
ocal/Qt4.7/mkspecs/macx-g++ -I.
-I/usr/include/QtCore -I/usr/include -I. -F/Library/Frameworks -o qtdirs.o
g++ -headerpad_max_install_names -arch ppc -arch i386 -o
qtdirs.o   -F/Library/Frameworks -L/Library/Frameworks -framework QtCore
ld warning: in /Library/Frameworks/QtCore.framework/QtCore, missing required
ppc in file
Undefined symbols for architecture ppc:
  "QFile::open(QFlags<QIODevice::OpenModeFlag>)", referenced from:
      _main in qtdirs.o
  "QString::fromAscii_helper(char const*, int)", referenced from:
      QString::QString(char const*)in qtdirs.o
  "QTextStream::QTextStream(QIODevice*)", referenced from:
      _main in qtdirs.o
  "QTextStream::operator<<(char)", referenced from:


  "QFile::QFile(QString const&)", referenced from:
      _main in qtdirs.o
ld: symbol(s) not found for architecture ppc
collect2: ld returned 1 exit status
lipo: can't open input file:
/var/folders/S4/S4v7nIuvHeWzArmtCCrq7U+++TI/-Tmp-//ccmE6hnS.out (No such
file or directory)
make: *** [qtdirs.app/Contents/MacOS/qtdirs] Error 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20101217/f5efd79a/attachment-0001.html>

More information about the PyQt mailing list