make[1]: *** [sipQtCorecmodule.o] Error 1
July 8th, 2007 by BusindreVamos a ver como resolver un típico error al ejecutar "make" para compilar la aplicación PyQt versión "4.2".
Error al compilar PyQt-x11-gpl-4.2
make[1]: Entering directory `/home/busi/PyQt-x11-gpl-4.2/qpy'
make[2]: Entering directory `/home/busi/PyQt-x11-gpl-4.2/qpy/QtDesigner'
make[2]: No se hace nada para `install'.
make[2]: Leaving directory `/home/busi/PyQt-x11-gpl-4.2/qpy/QtDesigner'
make[1]: Leaving directory `/home/busi/PyQt-x11-gpl-4.2/qpy'
make[1]: Entering directory `/home/busi/PyQt-x11-gpl-4.2/QtCore'
g++ -c -pipe -fPIC -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_CORE_LIB -I. -I/usr/include/python2.4 -I/usr/local/Trolltech/Qt-4.1.4/mkspecs/default -I/usr/local/Trolltech/Qt-4.1.4/include/QtCore -I/usr/local/Trolltech/Qt-4.1.4/include -I/usr/X11R6/include -o sipQtCorecmodule.o sipQtCorecmodule.cpp
sip/QtCore/qobject.sip: En function `int qtcore_pyqtproperty_init(PyObject*, PyObject*, PyObject*)':
sip/QtCore/qobject.sip:1995: error: `Matrix' is not a member of type `QVariant'
make[1]: *** [sipQtCorecmodule.o] Error 1
make[1]: Leaving directory `/home/busi/PyQt-x11-gpl-4.2/QtCore'
make: *** [install] Error 2
Solución (Editar ./sip/QtCore/qobject.sip):
Comentamos ("//") esta linea:
class QMatrix /External/;
//class QMatrix /External/;
Borramos / Comentamos estas lineas:
case QVariant::Matrix:
pp->pyqtprop_pytype = sipClass_QMatrix;
external_name = sipName_QMatrix;
break;
Posted in Bugs |