[PyQt] Problems configuring PyQt4 on Mac OS X
phil at riverbankcomputing.com
Thu Nov 13 12:08:09 GMT 2008
On Thu, 13 Nov 2008 13:58:52 +0200, Raoul Snyman
<raoul.snyman at saturnlaboratories.co.za> wrote:
> I'm using Mac OS X 10.4.9 and I'm trying to get PyQt4 running on my
> Software installed and version numbers:
> Python 2.5.2
> Qt4 4.4.3 (installed via binary package)
> SIP 4.7.8
> I'm trying to install PyQt 4.4.4
> Here's what I get when trying to "configure":
> raoul at umbreon:PyQt-mac-gpl-4.4.4 $ python configure.py --verbose
> 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 -Wall -W -DQT_CORE_LIB -DQT_SHARED
> -I/usr/local/Qt4.4/mkspecs/macx-g++ -I.
> -I/usr/include/QtCore -I/usr/include -I. -I. -F/Library/Frameworks -o
> qtdirs.o qtdirs.cpp
> g++ -headerpad_max_install_names -o qtdirs.app/Contents/MacOS/qtdirs
> qtdirs.o -F/Library/Frameworks -L/Library/Frameworks -framework QtCore
> -lz -lm -framework ApplicationServices
> /usr/bin/ld: /Library/Frameworks/QtCore.framework/QtCore load command 5
> unknown cmd field
> collect2: ld returned 1 exit status
> make: *** [qtdirs.app/Contents/MacOS/qtdirs] Error 1
> Error: Failed to determine the layout of your Qt installation. Try again
> the --verbose flag to see more detail about the problem.
> qmake is definitely the right version:
> raoul at umbreon:PyQt-mac-gpl-4.4.4 $ /usr/bin/qmake -v
> QMake version 2.01a
> Using Qt version 4.4.3 in /Library/Frameworks
> g++ is 4.0.1:
> raoul at umbreon:PyQt-mac-gpl-4.4.4 $ g++ --version
> i686-apple-darwin8-g++-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build
> Copyright (C) 2005 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> I've googled this error, and no one seems to be able to fix the error, or
> they've upgraded (it wasn't working with PyQt4.4.3 either), or downgraded
> (not an option for me). I don't really want to download and compile Qt
> myself, but if that's the only way to solve this (which I don't think it
> is), then so be it.
> Does anyone have any clues for me? Any questions?
As this is failing on the compilation of a simple Qt test program it would
suggest a problem with your Qt installation.
I've had several problems in the past with Trolltech's binary installers.
More information about the PyQt