<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 : <b>Jeu 1.10.09, Phil Thompson <i><phil@riverbankcomputing.com></i></b> a écrit :<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>De: Phil Thompson <phil@riverbankcomputing.com><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><<a ymailto="mailto:bartol_78@yahoo.com" href="/mc/compose?to=bartol_78@yahoo.com">bartol_78@yahoo.com</a>>
wrote:<br>> Hello everyone. I'm trying to install a software that needs pyQt4 to<br>> function (GNS3, Cisco router emulator).<br>> <br>> I'm running Linux CentOS 5.2 on a i386 type processor. I based the<br>> compilation process on this page<br>> <br>> For that, I've successfully installed the following :<br>> python python-devel xorg-x11-proto-devel libXext-devel <br>> <br>> and built the following :<br>> qt-x11-opensource-src-4.5.0<br>> sip-4.9.tar.gz<br>> <br>> I'm now trying to build PyQt-x11-gpl-4.6<br>> The python configure part went ok. But the make part gives the following<br>> message :<br>> <br>> make[1]: entrant dans le répertoire « /tmp/PyQt-x11-gpl-4.6/QtCore »<br>> g++ -c -pipe -fPIC -O2 -Wall -W -D_REENTRANT -DNDEBUG -DQT_NO_DEBUG<br>> -DQT_CORE_LIB -I. -I/tmp/PyQt-x11-gpl-4.6/qpy/QtCore<br>> -I/usr/include/python2.4
-I/usr/local/Trolltech/Qt-4.4.1/mkspecs/default<br>> -I/usr/local/Trolltech/Qt-4.4.1/include/QtCore<br>> -I/usr/local/Trolltech/Qt-4.4.1/include -I/usr/X11R6/include -o<br>> sipQtCoreQUrl.o sipQtCoreQUrl.cpp<br>> sip/QtCore/qurl.sip: In function ‘long int<br>> slot_QUrl___hash__(PyObject*)’:<br>> sip/QtCore/qurl.sip:74: erreur: ‘qHash’ was not declared in this<br>scope<br>> make[1]: *** [sipQtCoreQUrl.o] Erreur 1<br>> make[1]: quittant le répertoire « /tmp/PyQt-x11-gpl-4.6/QtCore »<br>> make: *** [install] Erreur 2<br>> <br>> I don't know what this mistake is about. I tried to look on the internet<br>> and on this mailing-list, but I found nothing.<br>> <br>> Any help appreciated !<br>> <br>> Thanks in advance !<br><br>Try adding...<br><br>%TypeCode<br>#include <QHash><br>%End<br><br>...after the %TypeHeaderCode section in qurl.sip.<br><br>Phil<br></div></blockquote></td></tr></table><br>