[PyQt] Error in compiling the library

Phil Thompson phil at riverbankcomputing.com
Fri Sep 24 10:00:41 BST 2010


On Fri, 24 Sep 2010 00:41:48 -0400, Kannan U V <kannanuv at cshl.edu> wrote:
> H,
> I am trying to compile  PyQt and get the following error. I have
> python 2.4.3 and Qt 4.7.0 on a CentOS 5.5
> 
> make[1]: Leaving directory
> `/home/kannanuv/software/PyQt-x11-gpl-4.7.7/pylupdate'
> make[1]: Entering directory
> `/home/kannanuv/software/PyQt-x11-gpl-4.7.7/pyrcc'
> g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DNDEBUG -DQT_NO_DEBUG
> -DQT_CORE_LIB -DQT_XML_LIB -I.
> -I/usr/local/Trolltech/Qt-4.7.0/mkspecs/default
> -I/usr/local/Trolltech/Qt-4.7.0/include/QtCore
> -I/usr/local/Trolltech/Qt-4.7.0/include/QtXml
> -I/usr/local/Trolltech/Qt-4.7.0/include -o main.o main.cpp
> g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DNDEBUG -DQT_NO_DEBUG
> -DQT_CORE_LIB -DQT_XML_LIB -I.
> -I/usr/local/Trolltech/Qt-4.7.0/mkspecs/default
> -I/usr/local/Trolltech/Qt-4.7.0/include/QtCore
> -I/usr/local/Trolltech/Qt-4.7.0/include/QtXml
> -I/usr/local/Trolltech/Qt-4.7.0/include -o rcc.o rcc.cpp
> g++ -Wl,-O1 -o pyrcc4 main.o rcc.o -L/usr/local/Trolltech/Qt-4.7.0/lib
> -lQtCore -L/usr/local/Trolltech/Qt-4.7.0/lib -lpthread -lQtXml
> -L/usr/local/Trolltech/Qt-4.7.0/lib -lQtCore
> -L/usr/local/Trolltech/Qt-4.7.0/lib -lpthread -lpthread
> ./pyrcc4 -py2 -o
> ../examples/draganddrop/fridgemagnets/fridgemagnets_rc.py
> ../examples/draganddrop/fridgemagnets/fridgemagnets.qrc
> ./pyrcc4: symbol lookup error: ./pyrcc4: undefined symbol:
> _Z7qstrcmpRK10QByteArrayPKc
> make[1]: *** [pyrcc4] Error 127
> make[1]: Leaving directory
> `/home/kannanuv/software/PyQt-x11-gpl-4.7.7/pyrcc'
> make: *** [all] Error 2

This is because of a change in qmake's g++.conf file in Qt v4.7.0 which
breaks the SIP build system support for rpath.

It is fixed in the current SIP snapshot.

Phil


More information about the PyQt mailing list