Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QHash problems from 4.8 to 5.0.2
Forum Updated to NodeBB v4.3 + New Features

QHash problems from 4.8 to 5.0.2

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bjanuario
    wrote on last edited by
    #1

    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 'qHashAbstractMetadata::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 'QSetAbstractMetadata::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 'qHashAbstractMetadata::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 'QSetAbstractMetadata::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?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved