In gcconfig.pri I have set up QMAKE_LRELEASE to /opt/QtSDK/Desktop/Qt/4.8.1/gcc/bin/lrelease.
Charts/LTMPlot.cpp:4380:73: error: could not convert ‘{"minutes", LTMPlot::tr(const char*, const char*)(0)}’ from ‘<brace-enclosed initializer list>’ to ‘const QSet<QString>’
static const QSet<QString> MinutesHash = { "minutes", tr("minutes") };
^
In file included from /opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qvariant.h:50:0,
from /opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtGui/qaction.h:48,
from /opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtGui/qmenu.h:48,
from /opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtGui/QMenu:1,
from Charts/GoldenCheetah.h:31,
from Core/Measures.h:22,
from Core/Athlete.h:22,
from Charts/LTMPlot.cpp:19:
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qhash.h: In instantiation of ‘QHash<K, V>::Node** QHash<K, V>::findNode(const Key&, uint*) const [with Key = QDate; T = Performance; QHash<K, V>::Node = QHashNode<QDate, Performance>; uint = unsigned int]’:
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qhash.h:620:42: required from ‘const T QHash<K, V>::value(const Key&, const T&) const [with Key = QDate; T = Performance]’
Charts/LTMPlot.cpp:3783:59: required from here
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qhash.h:882:19: error: no matching function for call to ‘qHash(const QDate&)’
uint h = qHash(akey);
~~~~~^~~~~~
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qhash.h:97:32: note: candidate: template<class T> uint qHash(const T*)
template <class T> inline uint qHash(const T *key)
^~~~~
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qhash.h:97:32: note: template argument deduction/substitution failed:
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qhash.h:882:19: note: mismatched types ‘const T*’ and ‘QDate’
uint h = qHash(akey);
~~~~~^~~~~~
In file included from /opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qsharedpointer.h:50:0,
from /opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtGui/qpixmap.h:49,
from /opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtGui/qbrush.h:53,
from /opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtGui/qpalette.h:47,
from /opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtGui/qwidget.h:49,
from /opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtGui/qmenu.h:45,
from /opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtGui/QMenu:1,
from Charts/GoldenCheetah.h:31,
from Core/Measures.h:22,
from Core/Athlete.h:22,
from Charts/LTMPlot.cpp:19:
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qsharedpointer_impl.h:779:24: note: candidate: template<class T> uint qHash(const QSharedPointer<X>&)
Q_INLINE_TEMPLATE uint qHash(const QSharedPointer<T> &ptr)
^~~~~
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qsharedpointer_impl.h:779:24: note: template argument deduction/substitution failed:
In file included from /opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qvariant.h:50:0,
from /opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtGui/qaction.h:48,
from /opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtGui/qmenu.h:48,
from /opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtGui/QMenu:1,
from Charts/GoldenCheetah.h:31,
from Core/Measures.h:22,
from Core/Athlete.h:22,
from Charts/LTMPlot.cpp:19:
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qhash.h:882:19: note: ‘const QDate’ is not derived from ‘const QSharedPointer<X>’
uint h = qHash(akey);
~~~~~^~~~~~
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qhash.h:62:13: note: candidate: uint qHash(char)
inline uint qHash(char key) { return uint(key); }
^~~~~
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qhash.h:62:13: note: no known conversion for argument 1 from ‘const QDate’ to ‘char’
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qhash.h:63:13: note: candidate: uint qHash(uchar)
inline uint qHash(uchar key) { return uint(key); }
^~~~~
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qhash.h:63:13: note: no known conversion for argument 1 from ‘const QDate’ to ‘uchar {aka unsigned char}’
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qhash.h:64:13: note: candidate: uint qHash(signed char)
inline uint qHash(signed char key) { return uint(key); }
^~~~~
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qhash.h:64:13: note: no known conversion for argument 1 from ‘const QDate’ to ‘signed char’
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qhash.h:65:13: note: candidate: uint qHash(ushort)
inline uint qHash(ushort key) { return uint(key); }
^~~~~
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qhash.h:65:13: note: no known conversion for argument 1 from ‘const QDate’ to ‘ushort {aka short unsigned int}’
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qhash.h:66:13: note: candidate: uint qHash(short int)
inline uint qHash(short key) { return uint(key); }
^~~~~
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qhash.h:66:13: note: no known conversion for argument 1 from ‘const QDate’ to ‘short int’
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qhash.h:67:13: note: candidate: uint qHash(uint)
inline uint qHash(uint key) { return key; }
^~~~~
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qhash.h:67:13: note: no known conversion for argument 1 from ‘const QDate’ to ‘uint {aka unsigned int}’
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qhash.h:68:13: note: candidate: uint qHash(int)
inline uint qHash(int key) { return uint(key); }
^~~~~
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qhash.h:68:13: note: no known conversion for argument 1 from ‘const QDate’ to ‘int’
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qhash.h:69:13: note: candidate: uint qHash(ulong)
inline uint qHash(ulong key)
^~~~~
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qhash.h:69:13: note: no known conversion for argument 1 from ‘const QDate’ to ‘ulong {aka long unsigned int}’
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qhash.h:77:13: note: candidate: uint qHash(long int)
inline uint qHash(long key) { return qHash(ulong(key)); }
^~~~~
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qhash.h:77:13: note: no known conversion for argument 1 from ‘const QDate’ to ‘long int’
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qhash.h:78:13: note: candidate: uint qHash(quint64)
inline uint qHash(quint64 key)
^~~~~
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qhash.h:78:13: note: no known conversion for argument 1 from ‘const QDate’ to ‘quint64 {aka long long unsigned int}’
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qhash.h:86:13: note: candidate: uint qHash(qint64)
inline uint qHash(qint64 key) { return qHash(quint64(key)); }
^~~~~
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qhash.h:86:13: note: no known conversion for argument 1 from ‘const QDate’ to ‘qint64 {aka long long int}’
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qhash.h:87:13: note: candidate: uint qHash(QChar)
inline uint qHash(QChar key) { return qHash(key.unicode()); }
^~~~~
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qhash.h:87:13: note: no known conversion for argument 1 from ‘const QDate’ to ‘QChar’
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qhash.h:88:20: note: candidate: uint qHash(const QByteArray&)
Q_CORE_EXPORT uint qHash(const QByteArray &key);
^~~~~
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qhash.h:88:20: note: no known conversion for argument 1 from ‘const QDate’ to ‘const QByteArray&’
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qhash.h:89:20: note: candidate: uint qHash(const QString&)
Q_CORE_EXPORT uint qHash(const QString &key);
^~~~~
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qhash.h:89:20: note: no known conversion for argument 1 from ‘const QDate’ to ‘const QString&’
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qhash.h:90:20: note: candidate: uint qHash(const QStringRef&)
Q_CORE_EXPORT uint qHash(const QStringRef &key);
^~~~~
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qhash.h:90:20: note: no known conversion for argument 1 from ‘const QDate’ to ‘const QStringRef&’
In file included from /opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/QtCore:5:0,
from /opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtGui/QtGui:3,
from Charts/GoldenCheetah.h:41,
from Core/Measures.h:22,
from Core/Athlete.h:22,
from Charts/LTMPlot.cpp:19:
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qbitarray.h:58:31: note: candidate: uint qHash(const QBitArray&)
friend Q_CORE_EXPORT uint qHash(const QBitArray &key);
^~~~~
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qbitarray.h:58:31: note: no known conversion for argument 1 from ‘const QDate’ to ‘const QBitArray&’
In file included from /opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qvariant.h:50:0,
from /opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtGui/qaction.h:48,
from /opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtGui/qmenu.h:48,
from /opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtGui/QMenu:1,
from Charts/GoldenCheetah.h:31,
from Core/Measures.h:22,
from Core/Athlete.h:22,
from Charts/LTMPlot.cpp:19:
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qhash.h:105:49: note: candidate: template<class T1, class T2> uint qHash(const QPair<T1, T2>&)
template <typename T1, typename T2> inline uint qHash(const QPair<T1, T2> &key)
^~~~~
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qhash.h:105:49: note: template argument deduction/substitution failed:
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qhash.h:882:19: note: ‘const QDate’ is not derived from ‘const QPair<T1, T2>’
uint h = qHash(akey);
~~~~~^~~~~~
In file included from /opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtScript/qscriptengine.h:40:0,
from /opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtWebKit/qwebframe.h:28,
from /opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtWebKit/QWebFrame:1,
from Charts/LTMWindow.h:30,
from Charts/LTMPlot.cpp:26:
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtScript/qscriptstring.h:63:22: note: candidate: uint qHash(const QScriptString&)
Q_SCRIPT_EXPORT uint qHash(const QScriptString &key);
^~~~~
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtScript/qscriptstring.h:63:22: note: no known conversion for argument 1 from ‘const QDate’ to ‘const QScriptString&’
In file included from /opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtGui/qabstractitemview.h:47:0,
from /opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtGui/QtGui:24,
from Charts/GoldenCheetah.h:41,
from Core/Measures.h:22,
from Core/Athlete.h:22,
from Charts/LTMPlot.cpp:19:
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtGui/qitemselectionmodel.h:229:13: note: candidate: uint qHash(const QItemSelectionRange&)
inline uint qHash(const QItemSelectionRange &) { return 0; }
^~~~~
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtGui/qitemselectionmodel.h:229:13: note: no known conversion for argument 1 from ‘const QDate’ to ‘const QItemSelectionRange&’
In file included from /opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/QtCore:119:0,
from /opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtGui/QtGui:3,
from Charts/GoldenCheetah.h:41,
from Core/Measures.h:22,
from Core/Athlete.h:22,
from Charts/LTMPlot.cpp:19:
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qabstractitemmodel.h:407:13: note: candidate: uint qHash(const QModelIndex&)
inline uint qHash(const QModelIndex &index)
^~~~~
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qabstractitemmodel.h:407:13: note: no known conversion for argument 1 from ‘const QDate’ to ‘const QModelIndex&’
In file included from /opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/QtCore:119:0,
from /opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtGui/QtGui:3,
from Charts/GoldenCheetah.h:41,
from Core/Measures.h:22,
from Core/Athlete.h:22,
from Charts/LTMPlot.cpp:19:
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qabstractitemmodel.h:143:13: note: candidate: uint qHash(const QPersistentModelIndex&)
inline uint qHash(const QPersistentModelIndex &index)
^~~~~
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qabstractitemmodel.h:143:13: note: no known conversion for argument 1 from ‘const QDate’ to ‘const QPersistentModelIndex&’
In file included from /opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/QtCore:62:0,
from /opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtGui/QtGui:3,
from Charts/GoldenCheetah.h:41,
from Core/Measures.h:22,
from Core/Athlete.h:22,
from Charts/LTMPlot.cpp:19:
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qurl.h:283:13: note: candidate: uint qHash(const QUrl&)
inline uint qHash(const QUrl &url)
^~~~~
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore/qurl.h:283:13: note: no known conversion for argument 1 from ‘const QDate’ to ‘const QUrl&’
Makefile:2703: recipe for target 'LTMPlot.o' failed
make: *** [LTMPlot.o] Error 1
Jérôme.