[PyQt] PyQt4 fails to link to -plython2.5

Vladimir Pouzanov farcaller at gmail.com
Sat Mar 1 18:46:02 GMT 2008


make fails with lots of errors like:
sipQtCoreQtKeyboardModifiers.cpp:(.text+0x773): undefined reference to
`PyEval_SaveThread'
sipQtCoreQtKeyboardModifiers.cpp:(.text+0x77d): undefined reference to
`PyEval_RestoreThread'
sipQtCoreQtKeyboardModifiers.cpp:(.text+0x785): undefined reference to
`PyInt_FromLong'

In fact it does not link to python lib at all.
This is reproducible with both stable and snapshot versions and python 2.5.1

I have qt-4.4.0beta_1. Could this be an issue?

Configure output:
$ python configure.py
Determining the layout of your Qt installation...
This is the GPL version of PyQt 4.3.4-snapshot-20080228 (licensed under the GNU
General Public License) for Python 2.5.1 on linux2.

Type 'L' to view the license.
Type 'yes' to accept the terms of the license.
Type 'no' to decline the terms of the license.

Do you accept the terms of the license? yes
Checking to see if the QtGui module should be built...
Checking to see if the QtNetwork module should be built...
Checking to see if the QtOpenGL module should be built...
Checking to see if the QtScript module should be built...
Checking to see if the QtSql module should be built...
Checking to see if the QtSvg module should be built...
Checking to see if the QtTest module should be built...
Checking to see if the QtXml module should be built...
Checking to see if the QtAssistant module should be built...
Checking to see if the QtDesigner module should be built...
Checking to see if the dbus support module should be built...
Qt v4.4.0 free edition is being used.
SIP 4.7.5-snapshot-20080227 is being used.
The Qt header files are in /usr/include/qt4.
The shared Qt libraries are in /usr/lib/qt4.
The Qt binaries are in /usr/bin.
The Qt mkspecs directory is in /usr/share/qt4.
These PyQt modules will be built: QtCore QtGui QtNetwork QtOpenGL QtScript
QtSql QtSvg QtTest QtXml QtAssistant QtDesigner.
The PyQt Python package will be installed in /usr/lib/python2.5/site-packages.
The Designer plugin will be installed in /usr/lib/qt4/plugins/designer.
The QScintilla API file will be installed in /usr/share/qt4/qsci/api/python.
The dbus support module will be installed in
/usr/lib/python2.5/site-packages/dbus/mainloop.
The PyQt .sip files will be installed in /usr/share/sip/PyQt4.
pyuic4, pyrcc4 and pylupdate4 will be installed in /usr/bin.
Generating the C++ source for the QtCore module...
Creating the Makefile for the QtCore module...
Generating the C++ source for the QtGui module...
Creating the Makefile for the QtGui module...
Generating the C++ source for the QtNetwork module...
Creating the Makefile for the QtNetwork module...
Generating the C++ source for the QtOpenGL module...
Creating the Makefile for the QtOpenGL module...
Generating the C++ source for the QtScript module...
Creating the Makefile for the QtScript module...
Generating the C++ source for the QtSql module...
Creating the Makefile for the QtSql module...
Generating the C++ source for the QtSvg module...
Creating the Makefile for the QtSvg module...
Generating the C++ source for the QtTest module...
Creating the Makefile for the QtTest module...
Generating the C++ source for the QtXml module...
Creating the Makefile for the QtXml module...
Generating the C++ source for the QtAssistant module...
Creating the Makefile for the QtAssistant module...
Generating the C++ source for the QtDesigner module...
Creating the Makefile for the QtDesigner module...
Generating the C++ source for the Qt module...
Creating the Makefile for the Qt module...
Creating QScintilla API file...
Creating top level Makefile...
Creating QPy library for QtDesigner Makefile...
Creating QPy libraries Makefile...
Creating dbus support module Makefile...
Creating pyuic4 wrapper...
Creating pyuic4 Makefile...
Creating pylupdate4 Makefile...
Creating pyrcc4 Makefile...
Creating Qt Designer plugin Makefile...
Creating pyqtconfig.py...




More information about the PyQt mailing list