Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

QHash problems from 4.8 to 5.0.2

$
0
0
Hello, I am trying to convert a project from 4.8 to 5.0.2 on Mac OS and I am getting this erros: 22:48:52: Configuration unchanged, skipping qmake step. 22:48:52: Starting: "/usr/bin/make" clang++ -c -pipe -mmacosx-version-min=10.7 -stdlib=libc++ -std=gnu++0x -g -gdwarf-2 -Wall -W -fPIC -DCOMMON_LIBRARY -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_CORE_LIB -I../../../Qt5.0.2/5.0.2/clang_64/mkspecs/macx-clang-libc++ -I. -I../../../Qt5.0.2/5.0.2/clang_64/include -I../../../Qt5.0.2/5.0.2/clang_64/include/QtCore -I../../../Qt5.0.2/5.0.2/clang_64/lib/QtCore.framework/Versions/5/Headers -I. -o metadataiopriv.o src/metadataiopriv.cpp In file included from src/metadataiopriv.cpp:1: In file included from ../../../Qt5.0.2/5.0.2/clang_64/include/QtCore/QDebug:1: In file included from ../../../Qt5.0.2/5.0.2/clang_64/include/QtCore/qdebug.h:46: ../../../Qt5.0.2/5.0.2/clang_64/include/QtCore/qhash.h:107:35: error: call to 'qHash' is ambiguous     Q_DECL_NOEXCEPT_EXPR(noexcept(qHash(t)))                                   ^~~~~ ../../../Qt5.0.2/5.0.2/clang_64/include/QtCore/qcompilerdetection.h:759:43: note: expanded from macro 'Q_DECL_NOEXCEPT_EXPR' # define Q_DECL_NOEXCEPT_EXPR(x) noexcept(x)                                           ^ ../../../Qt5.0.2/5.0.2/clang_64/include/QtCore/qhash.h:878:13: note: in instantiation of exception specification for 'qHash<AbstractMetadata::DescriptorTypes>' requested here         h = qHash(akey, d->seed);             ^ ../../../Qt5.0.2/5.0.2/clang_64/include/QtCore/qhash.h:867:13: note: in instantiation of member function 'QHash<AbstractMetadata::DescriptorTypes, QHashDummyValue>::findNode' requested here     return *findNode(akey) != e;             ^ ../../../Qt5.0.2/5.0.2/clang_64/include/QtCore/qset.h:90:64: note: in instantiation of member function 'QHash<AbstractMetadata::DescriptorTypes, QHashDummyValue>::contains' requested here     inline bool contains(const T &value) const { return q_hash.contains(value); }                                                                ^ src/metadataiopriv.cpp:457:17: note: in instantiation of member function 'QSet<AbstractMetadata::DescriptorTypes>::contains' requested here                         if(descTypes.contains(entry.descriptorType()) && firstCts <= entry.ctsMs() && lastCts >= entry.ctsMs())                                      ^ ../../../Qt5.0.2/5.0.2/clang_64/include/QtCore/qhash.h:86:13: note: candidate function inline uint qHash(QChar key, uint seed = 0) Q_DECL_NOTHROW { return qHash(key.unicode(), seed); }             ^ ../../../Qt5.0.2/5.0.2/clang_64/include/QtCore/qhash.h:108:11: error: call to 'qHash' is ambiguous { return (qHash(t) ^ seed); }           ^~~~~ ../../../Qt5.0.2/5.0.2/clang_64/include/QtCore/qhash.h:878:13: note: in instantiation of function template specialization 'qHash<AbstractMetadata::DescriptorTypes>' requested here         h = qHash(akey, d->seed);             ^ ../../../Qt5.0.2/5.0.2/clang_64/include/QtCore/qhash.h:867:13: note: in instantiation of member function 'QHash<AbstractMetadata::DescriptorTypes, QHashDummyValue>::findNode' requested here     return *findNode(akey) != e;             ^ ../../../Qt5.0.2/5.0.2/clang_64/include/QtCore/qset.h:90:64: note: in instantiation of member function 'QHash<AbstractMetadata::DescriptorTypes, QHashDummyValue>::contains' requested here     inline bool contains(const T &value) const { return q_hash.contains(value); }                                                                ^ src/metadataiopriv.cpp:457:17: note: in instantiation of member function 'QSet<AbstractMetadata::DescriptorTypes>::contains' requested here                         if(descTypes.contains(entry.descriptorType()) && firstCts <= entry.ctsMs() && lastCts >= entry.ctsMs())                                      ^ ../../../Qt5.0.2/5.0.2/clang_64/include/QtCore/qhash.h:64:13: note: candidate function inline uint qHash(ushort key, uint seed = 0) Q_DECL_NOTHROW { return uint(key) ^ seed; }             ^ ../../../Qt5.0.2/5.0.2/clang_64/include/QtCore/qhash.h:67:13: note: candidate function inline uint qHash(int key, uint seed = 0) Q_DECL_NOTHROW { return uint(key) ^ seed; }             ^ ../../../Qt5.0.2/5.0.2/clang_64/include/QtCore/qhash.h:66:13: note: candidate function inline uint qHash(uint key, uint seed = 0) Q_DECL_NOTHROW { return key ^ seed; }             ^ ../../../Qt5.0.2/5.0.2/clang_64/include/QtCore/qhash.h:68:13: note: candidate function inline uint qHash(ulong key, uint seed = 0) Q_DECL_NOTHROW             ^ ../../../Qt5.0.2/5.0.2/clang_64/include/QtCore/qhash.h:76:13: note: candidate function inline uint qHash(long key, uint seed = 0) Q_DECL_NOTHROW { return qHash(ulong(key), seed); }             ^ ../../../Qt5.0.2/5.0.2/clang_64/include/QtCore/qhash.h:77:13: note: candidate function inline uint qHash(quint64 key, uint seed = 0) Q_DECL_NOTHROW             ^ ../../../Qt5.0.2/5.0.2/clang_64/include/QtCore/qhash.h:85:13: note: candidate function inline uint qHash(qint64 key, uint seed = 0) Q_DECL_NOTHROW { return qHash(quint64(key), seed); }             ^ ../../../Qt5.0.2/5.0.2/clang_64/include/QtCore/qhash.h:86:13: note: candidate function inline uint qHash(QChar key, uint seed = 0) Q_DECL_NOTHROW { return qHash(key.unicode(), seed); }             ^ 2 errors generated. make: *** [metadataiopriv.o] Error 1 22:48:53: The process "/usr/bin/make" exited with code 2. Error while building/deploying project common (kit: Desktop Qt 5.0.2 clang 64bit) When executing step 'Make' 22:48:53: Elapsed time: 00:01. Can anyone help me with this issue?

Viewing all articles
Browse latest Browse all 18427

Trending Articles