[KPhotoAlbum] New compile errors
Robert Krawitz
rlk at alum.mit.edu
Sat May 26 17:47:26 BST 2018
[ 1%] Building CXX object CMakeFiles/kphotoalbum.dir/RemoteControl/RemoteConnection.cpp.o
In file included from /usr/include/qt5/QtCore/qnamespace.h:43:0,
from /usr/include/qt5/QtCore/qobjectdefs.h:48,
from /usr/include/qt5/QtCore/qobject.h:46,
from /usr/include/qt5/QtCore/QObject:1,
from /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.h:22,
from /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp:19:
/home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp: In member function ‘void RemoteControl::RemoteConnection::dataReceived()’:
/home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp:108:52: error: no matching function for call to ‘asString(qint32&)’
<< ": Received " << qPrintable(id);
^
In file included from /usr/include/qt5/QtCore/qobject.h:47:0,
from /usr/include/qt5/QtCore/QObject:1,
from /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.h:22,
from /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp:19:
/usr/include/qt5/QtCore/qstring.h:1862:23: note: candidate: const QString& QtPrivate::asString(const QString&) <near match>
inline const QString &asString(const QString &s) { return s; }
^~~~~~~~
/usr/include/qt5/QtCore/qstring.h:1862:23: note: conversion of argument 1 would be ill-formed:
In file included from /usr/include/qt5/QtCore/qnamespace.h:43:0,
from /usr/include/qt5/QtCore/qobjectdefs.h:48,
from /usr/include/qt5/QtCore/qobject.h:46,
from /usr/include/qt5/QtCore/QObject:1,
from /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.h:22,
from /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp:19:
/home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp:108:52: error: invalid user-defined conversion from ‘qint32 {aka int}’ to ‘const QString&’ [-fpermissive]
<< ": Received " << qPrintable(id);
^
In file included from /usr/include/qt5/QtCore/qobject.h:47:0,
from /usr/include/qt5/QtCore/QObject:1,
from /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.h:22,
from /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp:19:
/usr/include/qt5/QtCore/qstring.h:829:5: note: candidate is: QString::QString(const char*) <near match>
QString(const char *ch);
^~~~~~~
/usr/include/qt5/QtCore/qstring.h:829:5: note: conversion of argument 1 would be ill-formed:
In file included from /usr/include/qt5/QtCore/qnamespace.h:43:0,
from /usr/include/qt5/QtCore/qobjectdefs.h:48,
from /usr/include/qt5/QtCore/qobject.h:46,
from /usr/include/qt5/QtCore/QObject:1,
from /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.h:22,
from /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp:19:
/home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp:108:52: error: invalid conversion from ‘qint32 {aka int}’ to ‘const char*’ [-fpermissive]
<< ": Received " << qPrintable(id);
^
/home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp:108:52: error: ‘QString::QString(const char*)’ is private within this context
In file included from /usr/include/qt5/QtCore/qobject.h:47:0,
from /usr/include/qt5/QtCore/QObject:1,
from /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.h:22,
from /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp:19:
/usr/include/qt5/QtCore/qstring.h:829:5: note: declared private here
QString(const char *ch);
^~~~~~~
In file included from /usr/include/qt5/QtCore/qnamespace.h:43:0,
from /usr/include/qt5/QtCore/qobjectdefs.h:48,
from /usr/include/qt5/QtCore/qobject.h:46,
from /usr/include/qt5/QtCore/QObject:1,
from /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.h:22,
from /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp:19:
/home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp:108:52: error: invalid conversion from ‘qint32 {aka int}’ to ‘const char*’ [-fpermissive]
<< ": Received " << qPrintable(id);
^
In file included from /usr/include/qt5/QtCore/qobject.h:47:0,
from /usr/include/qt5/QtCore/QObject:1,
from /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.h:22,
from /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp:19:
/usr/include/qt5/QtCore/qstring.h:829:5: note: initializing argument 1 of ‘QString::QString(const char*)’
QString(const char *ch);
^~~~~~~
/usr/include/qt5/QtCore/qstring.h:1863:18: note: candidate: QString&& QtPrivate::asString(QString&&) <near match>
inline QString &&asString(QString &&s) { return std::move(s); }
^~~~~~~~
/usr/include/qt5/QtCore/qstring.h:1863:18: note: conversion of argument 1 would be ill-formed:
In file included from /usr/include/qt5/QtCore/qnamespace.h:43:0,
from /usr/include/qt5/QtCore/qobjectdefs.h:48,
from /usr/include/qt5/QtCore/qobject.h:46,
from /usr/include/qt5/QtCore/QObject:1,
from /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.h:22,
from /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp:19:
/home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp:108:52: error: invalid user-defined conversion from ‘qint32 {aka int}’ to ‘QString&&’ [-fpermissive]
<< ": Received " << qPrintable(id);
^
In file included from /usr/include/qt5/QtCore/qobject.h:47:0,
from /usr/include/qt5/QtCore/QObject:1,
from /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.h:22,
from /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp:19:
/usr/include/qt5/QtCore/qstring.h:829:5: note: candidate is: QString::QString(const char*) <near match>
QString(const char *ch);
^~~~~~~
/usr/include/qt5/QtCore/qstring.h:829:5: note: conversion of argument 1 would be ill-formed:
In file included from /usr/include/qt5/QtCore/qnamespace.h:43:0,
from /usr/include/qt5/QtCore/qobjectdefs.h:48,
from /usr/include/qt5/QtCore/qobject.h:46,
from /usr/include/qt5/QtCore/QObject:1,
from /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.h:22,
from /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp:19:
/home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp:108:52: error: invalid conversion from ‘qint32 {aka int}’ to ‘const char*’ [-fpermissive]
<< ": Received " << qPrintable(id);
^
/home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp:108:52: error: ‘QString::QString(const char*)’ is private within this context
In file included from /usr/include/qt5/QtCore/qobject.h:47:0,
from /usr/include/qt5/QtCore/QObject:1,
from /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.h:22,
from /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp:19:
/usr/include/qt5/QtCore/qstring.h:829:5: note: declared private here
QString(const char *ch);
^~~~~~~
In file included from /usr/include/qt5/QtCore/qnamespace.h:43:0,
from /usr/include/qt5/QtCore/qobjectdefs.h:48,
from /usr/include/qt5/QtCore/qobject.h:46,
from /usr/include/qt5/QtCore/QObject:1,
from /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.h:22,
from /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp:19:
/home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp:108:52: error: invalid conversion from ‘qint32 {aka int}’ to ‘const char*’ [-fpermissive]
<< ": Received " << qPrintable(id);
^
In file included from /usr/include/qt5/QtCore/qobject.h:47:0,
from /usr/include/qt5/QtCore/QObject:1,
from /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.h:22,
from /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp:19:
/usr/include/qt5/QtCore/qstring.h:829:5: note: initializing argument 1 of ‘QString::QString(const char*)’
QString(const char *ch);
^~~~~~~
In file included from /usr/include/qt5/QtCore/qnamespace.h:43:0,
from /usr/include/qt5/QtCore/qobjectdefs.h:48,
from /usr/include/qt5/QtCore/qobject.h:46,
from /usr/include/qt5/QtCore/QObject:1,
from /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.h:22,
from /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp:19:
/home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp:108:52: error: conversion to non-const reference type ‘class QString&&’ from rvalue of type ‘QString’ [-fpermissive]
<< ": Received " << qPrintable(id);
^
--
Robert Krawitz <rlk at alum.mit.edu>
*** MIT Engineers A Proud Tradition http://mitathletics.com ***
Member of the League for Programming Freedom -- http://ProgFree.org
Project lead for Gutenprint -- http://gimp-print.sourceforge.net
"Linux doesn't dictate how I work, I dictate how Linux works."
--Eric Crampton
More information about the Kphotoalbum
mailing list