[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:
sip:
$ python configure.py --universal
$ make && sudo make install
PyQt:
$ 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
PyQt:
$ 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/Library/Frameworks/QtCore.framework/Versions/4/Headers
-I/usr/include/QtCore -I/usr/include -I. -F/Library/Frameworks -o qtdirs.o
qtdirs.cpp
g++ -headerpad_max_install_names -arch ppc -arch i386 -o
qtdirs.app/Contents/MacOS/qtdirs
qtdirs.o -F/Library/Frameworks -L/Library/Frameworks -framework QtCore
-L/tmp/qt-stuff-6
474/source/qt-everywhere-opensource-src-4.7.0/lib
ld warning: in /Library/Frameworks/QtCore.framework/QtCore, missing required
architecture
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:
....snip
"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