kdesupport/soprano/soprano

Thiago Macieira thiago at kde.org
Mon Feb 15 16:23:14 GMT 2010


Em Segunda-feira 15 Fevereiro 2010, às 16:41:38, John Layt escreveu:
> On Tuesday 12 Jan 2010 18:58:47 Thiago Macieira wrote:
> > SVN commit 1073734 by thiago:
> > 
> > Soprano cannot define qHash(const QUrl &) after Qt 4.7.
> > 
> > Qt 4.7 will come with its own hashing function for QUrl. If Soprano
> > continues to define such a function, compilation errors will occur.
> 
> Hi Thiago,
> 
> I'm trying to compile a fresh trunk/kdesupport checkout against Qt 4.7 HEAD
> and I'm getting the following error:
> 
> In file included from
> /media/laptop/Programming/KDE/src/trunk/kdesupport/soprano/index/indexfilte
> rmodel_p.h:26, from
> /media/laptop/Programming/KDE/src/trunk/kdesupport/soprano/index/indexfilte
> rmodel.cpp:23:
> /media/laptop/Programming/KDE/src/trunk/kdesupport/soprano/index/qurlhash.
> h: In function ‘uint qHash(const QUrl&)’:
> /media/laptop/Programming/KDE/src/trunk/kdesupport/soprano/index/qurlhash.h
> :28: error: redefinition of ‘uint qHash(const QUrl&)’
> /media/laptop/Programming/Qt/git/qt/include/QtCore/../../src/corelib/io/qur
> l.h:273: error: ‘uint qHash(const QUrl&)’ previously defined here
> 
> Is this still a problem in Soprano, or just something local to my setup?

Apparently that file escaped my attention when I did the change.

Please wrap the function in
#if QT_VERSION < 0x040700

#endif
-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20100215/1472a48e/attachment.sig>


More information about the kde-core-devel mailing list