<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Thank you so much it works fine.<br><br>I added the part you said once in qurl.sip and twice in qdatetime.sip.<br><br>Question : is it a bug ? Or something missing on my computer ?<br><br>Thank you again.<br><br>--- En date de&nbsp;: <b>Jeu 1.10.09, Phil Thompson <i>&lt;phil@riverbankcomputing.com&gt;</i></b> a écrit&nbsp;:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>De: Phil Thompson &lt;phil@riverbankcomputing.com&gt;<br>Objet: Re: [PyQt] PyQt4 build problem : 'qHash' was not declared in this scope<br>À: bartol_78@yahoo.com<br>Cc: pyqt@riverbankcomputing.com<br>Date: Jeudi 1 Octobre 2009, 16h29<br><br><div class="plainMail">On Thu, 1 Oct 2009 06:42:23 -0700 (PDT), Thibault Bartolone<br>&lt;<a ymailto="mailto:bartol_78@yahoo.com" href="/mc/compose?to=bartol_78@yahoo.com">bartol_78@yahoo.com</a>&gt;
 wrote:<br>&gt; Hello everyone. I'm trying to install a software that needs pyQt4 to<br>&gt; function (GNS3, Cisco router emulator).<br>&gt; <br>&gt; I'm running Linux CentOS 5.2 on a i386 type processor. I based the<br>&gt; compilation process on this page<br>&gt; <br>&gt; For that, I've successfully installed the following :<br>&gt; python python-devel xorg-x11-proto-devel libXext-devel&nbsp; <br>&gt; <br>&gt; and built the following :<br>&gt; qt-x11-opensource-src-4.5.0<br>&gt; sip-4.9.tar.gz<br>&gt; <br>&gt; I'm now trying to build PyQt-x11-gpl-4.6<br>&gt; The python configure part went ok. But the make part gives the following<br>&gt; message :<br>&gt; <br>&gt; make[1]: entrant dans le répertoire « /tmp/PyQt-x11-gpl-4.6/QtCore »<br>&gt; g++ -c -pipe -fPIC -O2 -Wall -W -D_REENTRANT -DNDEBUG -DQT_NO_DEBUG<br>&gt; -DQT_CORE_LIB -I. -I/tmp/PyQt-x11-gpl-4.6/qpy/QtCore<br>&gt; -I/usr/include/python2.4
 -I/usr/local/Trolltech/Qt-4.4.1/mkspecs/default<br>&gt; -I/usr/local/Trolltech/Qt-4.4.1/include/QtCore<br>&gt; -I/usr/local/Trolltech/Qt-4.4.1/include -I/usr/X11R6/include -o<br>&gt; sipQtCoreQUrl.o sipQtCoreQUrl.cpp<br>&gt; sip/QtCore/qurl.sip: In function ‘long int<br>&gt; slot_QUrl___hash__(PyObject*)’:<br>&gt; sip/QtCore/qurl.sip:74: erreur: ‘qHash’ was not declared in this<br>scope<br>&gt; make[1]: *** [sipQtCoreQUrl.o] Erreur 1<br>&gt; make[1]: quittant le répertoire « /tmp/PyQt-x11-gpl-4.6/QtCore »<br>&gt; make: *** [install] Erreur 2<br>&gt; <br>&gt; I don't know what this mistake is about. I tried to look on the internet<br>&gt; and on this mailing-list, but I found nothing.<br>&gt; <br>&gt; Any help appreciated !<br>&gt; <br>&gt; Thanks in advance !<br><br>Try adding...<br><br>%TypeCode<br>#include &lt;QHash&gt;<br>%End<br><br>...after the %TypeHeaderCode section in qurl.sip.<br><br>Phil<br></div></blockquote></td></tr></table><br>