[PyQt] make failure on mac os x

Phil Thompson phil at riverbankcomputing.com
Thu Apr 28 18:59:20 BST 2011


On Wed, 27 Apr 2011 15:12:39 -0700, David Cortesi <davecortesi at gmail.com>
wrote:
> I'm trying to install on Mac OS X 10.6.7 with the default python 2.6.
> I installed SIP, its make and make-install seemed to run correctly.
> I installed Qt 4.7.2 and ran its demos.
> I downloaded PyQt-mac-gpl-4.8.3 and ran its make, which did a whole
> bunch of compiles with no obvious errors. It got right to the end and
> failed as shown below.
> 
> I have no frakkin' clue what to do next. Any suggestions welcome.
> 
> Dave Cortesi
> 
> g++ -headerpad_max_install_names -single_module -dynamiclib -o
> libpythonplugin.dylib pluginloader.o moc_pluginloader.o
> -F/Library/Frameworks -L/Library/Frameworks -framework Python
> -framework QtScript -framework QtCore -framework QtXml -framework
> QtGui -framework QtDesigner
> ld: warning: in /Library/Frameworks/Python.framework/Python, missing
> required architecture x86_64 in file
> Undefined symbols:
>   "_Py_Initialize", referenced from:
>       PyCustomWidgets::PyCustomWidgets(QObject*)in pluginloader.o
>   "_PyLong_AsVoidPtr", referenced from:
>       PyCustomWidgets::PyCustomWidgets(QObject*)in pluginloader.o
>   "_PyErr_Print", referenced from:
>       PyCustomWidgets::getModuleAttr(char const*, char const*)in
>       pluginloader.o
>       PyCustomWidgets::getModuleAttr(char const*, char const*)in
>       pluginloader.o
>       PyCustomWidgets::PyCustomWidgets(QObject*)in pluginloader.o
>       PyCustomWidgets::PyCustomWidgets(QObject*)in pluginloader.o
>       PyCustomWidgets::PyCustomWidgets(QObject*)in pluginloader.o
>       PyCustomWidgets::PyCustomWidgets(QObject*)in pluginloader.o
>   "_PyString_FromString", referenced from:
>       PyCustomWidgets::PyCustomWidgets(QObject*)in pluginloader.o
>   "_PyType_IsSubtype", referenced from:
>       PyCustomWidgets::PyCustomWidgets(QObject*)in pluginloader.o
>   "_PyModule_GetDict", referenced from:
>       PyCustomWidgets::PyCustomWidgets(QObject*)in pluginloader.o
>   "_PyObject_CallObject", referenced from:
>       PyCustomWidgets::PyCustomWidgets(QObject*)in pluginloader.o
>   "_PyObject_CallFunctionObjArgs", referenced from:
>       PyCustomWidgets::PyCustomWidgets(QObject*)in pluginloader.o
>   "_PyList_Append", referenced from:
>       PyCustomWidgets::PyCustomWidgets(QObject*)in pluginloader.o
>   "_Py_IsInitialized", referenced from:
>       PyCustomWidgets::PyCustomWidgets(QObject*)in pluginloader.o
>   "_PyDict_Next", referenced from:
>       PyCustomWidgets::PyCustomWidgets(QObject*)in pluginloader.o
>   "_PyImport_ImportModule", referenced from:
>       PyCustomWidgets::getModuleAttr(char const*, char const*)in
>       pluginloader.o
>       PyCustomWidgets::PyCustomWidgets(QObject*)in pluginloader.o
>   "_PyObject_GetAttrString", referenced from:
>       PyCustomWidgets::getModuleAttr(char const*, char const*)in
>       pluginloader.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> make[1]: *** [libpythonplugin.dylib] Error 1
> make: *** [all] Error 2

You could try running configure.py with the --no-designer-plugin as a
workaround, but I don't know what the problem with your Python installation
is.

Phil


More information about the PyQt mailing list