[PyQt] PyQt4 build problem : 'qHash' was not declared in this scope

Thibault Bartolone bartol_78 at yahoo.com
Thu Oct 1 22:25:10 BST 2009

Thank you so much it works fine.

I added the part you said once in qurl.sip and twice in qdatetime.sip.

Question : is it a bug ? Or something missing on my computer ?

Thank you again.

--- En date de : Jeu 1.10.09, Phil Thompson <phil at riverbankcomputing.com> a écrit :

De: Phil Thompson <phil at riverbankcomputing.com>
Objet: Re: [PyQt] PyQt4 build problem : 'qHash' was not declared in this scope
À: bartol_78 at yahoo.com
Cc: pyqt at riverbankcomputing.com
Date: Jeudi 1 Octobre 2009, 16h29

On Thu, 1 Oct 2009 06:42:23 -0700 (PDT), Thibault Bartolone
<bartol_78 at yahoo.com> wrote:
> Hello everyone. I'm trying to install a software that needs pyQt4 to
> function (GNS3, Cisco router emulator).
> I'm running Linux CentOS 5.2 on a i386 type processor. I based the
> compilation process on this page
> For that, I've successfully installed the following :
> python python-devel xorg-x11-proto-devel libXext-devel  
> and built the following :
> qt-x11-opensource-src-4.5.0
> sip-4.9.tar.gz
> I'm now trying to build PyQt-x11-gpl-4.6
> The python configure part went ok. But the make part gives the following
> message :
> make[1]: entrant dans le répertoire « /tmp/PyQt-x11-gpl-4.6/QtCore »
> g++ -c -pipe -fPIC -O2 -Wall -W -D_REENTRANT -DNDEBUG -DQT_NO_DEBUG
> -DQT_CORE_LIB -I. -I/tmp/PyQt-x11-gpl-4.6/qpy/QtCore
> -I/usr/include/python2.4 -I/usr/local/Trolltech/Qt-4.4.1/mkspecs/default
> -I/usr/local/Trolltech/Qt-4.4.1/include/QtCore
> -I/usr/local/Trolltech/Qt-4.4.1/include -I/usr/X11R6/include -o
> sipQtCoreQUrl.o sipQtCoreQUrl.cpp
> sip/QtCore/qurl.sip: In function ‘long int
> slot_QUrl___hash__(PyObject*)’:
> sip/QtCore/qurl.sip:74: erreur: ‘qHash’ was not declared in this
> make[1]: *** [sipQtCoreQUrl.o] Erreur 1
> make[1]: quittant le répertoire « /tmp/PyQt-x11-gpl-4.6/QtCore »
> make: *** [install] Erreur 2
> I don't know what this mistake is about. I tried to look on the internet
> and on this mailing-list, but I found nothing.
> Any help appreciated !
> Thanks in advance !

Try adding...

#include <QHash>

...after the %TypeHeaderCode section in qurl.sip.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20091001/da5576c2/attachment.html

More information about the PyQt mailing list