[PyQt] qtdirs.app can't load QtCore
Dave Peterson
dpeterson at enthought.com
Wed Jun 24 18:54:37 BST 2009
Hello,
I'm trying to build PyQt 4.5.1 from source on Mac OSX 10.5 x86 and I'm
running into a problem right from the start in that the qtdirs.app built
during the configure step won't run because it won't load QtCore. I've
done an otool -L on "qtdirs.app/Contents/MacOS/qtdirs" and it doesn't
have any path prefix in front of the reference to QtCore.
Note that my Qt install is *not* a standard install. It is a custom
build installed into
"/Users/dpeterson/py/qtbuild/install/Qt-4.5.1-1.egg/EGG-INFO/usr". I
have verified I can run all the Qt apps, tools, and demos from this
install. I have exported QTDIR set to this path prior to invoking
PyQt's configure.py script. It looks like the build of the qtdirs.app
is picking up all the right paths for this install. But it looks to me
like PyQt's qtdirs.app assumes that the various Qt frameworks are in the
system location, even though configure explicitly passed the right
location for my frameworks via a -F flag to g++. Is this a bug with
PyQt's qtdirs build process?
Here's some output:
Determining the layout of your Qt installation...
/Users/dpeterson/py/qtbuild/install/Qt-4.5.1-1.egg/EGG-INFO/usr/bin/qmake
-spec macx-g++ -o qtdirs.mk qtdirs.pro
make -f qtdirs.mk
g++ -c -pipe -g -gdwarf-2 -arch i386 -Wall -W -DQT_CORE_LIB -DQT_SHARED
-I/Users/dpeterson/py/qtbuild/install/Qt-4.5.1-1.egg/EGG-INFO/usr/mkspecs/macx-g++
-I.
-I/Users/dpeterson/py/qtbuild/install/Qt-4.5.1-1.egg/EGG-INFO/usr/lib/QtCore.framework/Headers
-I/Users/dpeterson/py/qtbuild/install/Qt-4.5.1-1.egg/EGG-INFO/usr/include/QtCore
-I/Users/dpeterson/py/qtbuild/install/Qt-4.5.1-1.egg/EGG-INFO/usr/include
-I. -I.
-F/Users/dpeterson/py/qtbuild/install/Qt-4.5.1-1.egg/EGG-INFO/usr/lib -o
qtdirs.o qtdirs.cpp
g++ -headerpad_max_install_names -arch i386 -o
qtdirs.app/Contents/MacOS/qtdirs qtdirs.o
-F/Users/dpeterson/py/qtbuild/install/Qt-4.5.1-1.egg/EGG-INFO/usr/lib
-L/Users/dpeterson/py/qtbuild/install/Qt-4.5.1-1.egg/EGG-INFO/usr/lib
-framework QtCore
-L/Users/dpeterson/py/qtbuild/install/Qt-4.5.1-1.egg/EGG-INFO/usr/lib
-lz -lm -framework ApplicationServices
qtdirs.app/Contents/MacOS/qtdirs
dyld: Library not loaded: QtCore
Referenced from:
/Users/dpeterson/py/qtbuild/src/PyQt-mac-gpl-4.5.1/qtdirs.app/Contents/MacOS/qtdirs
Reason: image not found
Thanks in advance for any help!
-- Dave
More information about the PyQt
mailing list