[mythtv-users] Broken Compile - Arch Linux (Ambiguous operator overload)
Stuart Auchterlonie
stuarta at squashedfrog.net
Fri Feb 24 10:35:49 UTC 2017
On 24/02/17 04:27, Martin Gallant wrote:
> Hello,
>
> I am trying to compile the 0.28.1 release on Arch Linux.
>
> Can anyone point me in the right direction with these errors before I go
> into a deep dive?
> Looks to me like an issue with bleeding edge build tools, but that's
> just a guess.
>
> Does this look familiar to anyone?
>
> loggingserver.cpp: In member function 'virtual void DBLoggerThread::run()':
> loggingserver.cpp:725:36: error: ambiguous overload for 'operator!='
> (operand types are 'QCharRef' and 'char')
> if (item->message()[0] != '\0')
> ~~~~~~~~~~~~~~~~~~~^~~~~~~
> In file included from /usr/include/qt/QtCore/qobject.h:47:0,
> from /usr/include/qt/QtCore/qiodevice.h:45,
> from /usr/include/qt/QtCore/qdatastream.h:44,
> from /usr/include/qt/QtGui/qregion.h:49,
> from /usr/include/qt/QtGui/qevent.h:45,
> from /usr/include/qt/QtGui/QList:1,
> from loggingserver.cpp:5:
> /usr/include/qt/QtCore/qstring.h:1639:13: note: candidate: bool
> operator!=(QChar, const QStringRef&)
> inline bool operator!=(QChar lhs, const QStringRef &rhs) Q_DECL_NOTHROW
> { return !(lhs == rhs); }
> ^~~~~~~~
> /usr/include/qt/QtCore/qstring.h:1620:13: note: candidate: bool
> operator!=(QChar, const QString&)
> inline bool operator!=(QChar lhs, const QString &rhs) Q_DECL_NOTHROW {
> return !(lhs == rhs); }
> ^~~~~~~~
> In file included from /usr/include/qt/QtCore/qstring.h:48:0,
> from /usr/include/qt/QtCore/qobject.h:47,
> from /usr/include/qt/QtCore/qiodevice.h:45,
> from /usr/include/qt/QtCore/qdatastream.h:44,
> from /usr/include/qt/QtGui/qregion.h:49,
> from /usr/include/qt/QtGui/qevent.h:45,
> from /usr/include/qt/QtGui/QList:1,
> from loggingserver.cpp:5:
> /usr/include/qt/QtCore/qchar.h:576:30: note: candidate: constexpr bool
> operator!=(QChar, QChar)
> Q_DECL_CONSTEXPR inline bool operator!=(QChar c1, QChar c2)
> Q_DECL_NOTHROW { return !operator==(c1, c2); }
> ^~~~~~~~
>
What version of Qt are you trying to build against?
You should use 5.7 at this time, we've had a report of issues with
5.8.
Regards
Stuart
More information about the mythtv-users
mailing list