Skip to content

Instantly share code, notes, and snippets.

@tucnak
Created May 5, 2015 17:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tucnak/a4bbbcf1fe7fd330de89 to your computer and use it in GitHub Desktop.
Save tucnak/a4bbbcf1fe7fd330de89 to your computer and use it in GitHub Desktop.
Qt 5.4.1, OS X 10.10.3
In file included from ../src/widget/form/profileform.cpp:17:
../../qtox/src/core/core.h:236:62: error: unknown type name 'TOX_MESSAGE_TYPE'
static void onFriendMessage(Tox* tox, uint32_t friendId, TOX_MESSAGE_TYPE type,
^
../../qtox/src/core/core.h:243:66: error: unknown type name 'TOX_USER_STATUS'; did you mean 'TOX_USERSTATUS'?
static void onUserStatusChanged(Tox* tox, uint32_t friendId, TOX_USER_STATUS userstatus, void* core);
^~~~~~~~~~~~~~~
TOX_USERSTATUS
../libs/include/tox/tox.h:78:1: note: 'TOX_USERSTATUS' declared here
TOX_USERSTATUS;
^
In file included from ../src/widget/form/profileform.cpp:17:
../../qtox/src/core/core.h:244:72: error: unknown type name 'TOX_CONNECTION'
static void onConnectionStatusChanged(Tox* tox, uint32_t friendId, TOX_CONNECTION status, void* core);
^
../../qtox/src/core/core.h:306:5: error: unknown type name 'TOX_PASS_KEY'
TOX_PASS_KEY* pwsaltedkeys[PasswordType::ptCounter] = {nullptr}; // use the pw's hash as the "pw"
^
../../qtox/src/core/core.h:313:5: error: unknown type name 'TOX_PASS_KEY'
TOX_PASS_KEY* backupkeys[PasswordType::ptCounter] = {nullptr};
^
In file included from ../src/widget/netcamview.cpp:18:
../../qtox/src/core/core.h:236:62: error: unknown type name 'TOX_MESSAGE_TYPE'
static void onFriendMessage(Tox* tox, uint32_t friendId, TOX_MESSAGE_TYPE type,
^
../../qtox/src/core/core.h:243:66: error: unknown type name 'TOX_USER_STATUS'; did you mean 'TOX_USERSTATUS'?
static void onUserStatusChanged(Tox* tox, uint32_t friendId, TOX_USER_STATUS userstatus, void* core);
^~~~~~~~~~~~~~~
TOX_USERSTATUS
../libs/include/tox/tox.h:78:1: note: 'TOX_USERSTATUS' declared here
TOX_USERSTATUS;
^
In file included from ../src/widget/netcamview.cpp:18:
../../qtox/src/core/core.h:244:72: error: unknown type name 'TOX_CONNECTION'
static void onConnectionStatusChanged(Tox* tox, uint32_t friendId, TOX_CONNECTION status, void* core);
^
../../qtox/src/core/core.h:306:5: error: unknown type name 'TOX_PASS_KEY'
TOX_PASS_KEY* pwsaltedkeys[PasswordType::ptCounter] = {nullptr}; // use the pw's hash as the "pw"
^
../../qtox/src/core/core.h:313:5: error: unknown type name 'TOX_PASS_KEY'
TOX_PASS_KEY* backupkeys[PasswordType::ptCounter] = {nullptr};
^
In file included from ../src/widget/form/settingswidget.cpp:18:
In file included from ../../qtox/src/widget/widget.h:26:
In file included from ../../qtox/src/widget/form/profileform.h:24:
../../qtox/src/core/core.h:236:62: error: unknown type name 'TOX_MESSAGE_TYPE'
static void onFriendMessage(Tox* tox, uint32_t friendId, TOX_MESSAGE_TYPE type,
^
../../qtox/src/core/core.h:243:66: error: unknown type name 'TOX_USER_STATUS'; did you mean 'TOX_USERSTATUS'?
static void onUserStatusChanged(Tox* tox, uint32_t friendId, TOX_USER_STATUS userstatus, void* core);
^~~~~~~~~~~~~~~
TOX_USERSTATUS
../libs/include/tox/tox.h:78:1: note: 'TOX_USERSTATUS' declared here
TOX_USERSTATUS;
^
In file included from ../src/widget/form/settingswidget.cpp:18:
In file included from ../../qtox/src/widget/widget.h:26:
In file included from ../../qtox/src/widget/form/profileform.h:24:
../../qtox/src/core/core.h:244:72: error: unknown type name 'TOX_CONNECTION'
static void onConnectionStatusChanged(Tox* tox, uint32_t friendId, TOX_CONNECTION status, void* core);
^
../../qtox/src/core/core.h:306:5: error: unknown type name 'TOX_PASS_KEY'
TOX_PASS_KEY* pwsaltedkeys[PasswordType::ptCounter] = {nullptr}; // use the pw's hash as the "pw"
^
5 errors generated.
../../qtox/src/core/core.h:313:5: error: unknown type name 'TOX_PASS_KEY'
TOX_PASS_KEY* backupkeys[PasswordType::ptCounter] = {nullptr};
^
make: *** [netcamview.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from ../src/widget/widget.cpp:17:
In file included from ../src/widget/widget.h:26:
In file included from ../src/widget/form/profileform.h:24:
../../qtox/src/core/core.h:236:62: error: unknown type name 'TOX_MESSAGE_TYPE'
static void onFriendMessage(Tox* tox, uint32_t friendId, TOX_MESSAGE_TYPE type,
^
../../qtox/src/core/core.h:243:66: error: unknown type name 'TOX_USER_STATUS'; did you mean 'TOX_USERSTATUS'?
static void onUserStatusChanged(Tox* tox, uint32_t friendId, TOX_USER_STATUS userstatus, void* core);
^~~~~~~~~~~~~~~
TOX_USERSTATUS
../libs/include/tox/tox.h:78:1: note: 'TOX_USERSTATUS' declared here
TOX_USERSTATUS;
^
In file included from ../src/widget/widget.cpp:17:
In file included from ../src/widget/widget.h:26:
In file included from ../src/widget/form/profileform.h:24:
../../qtox/src/core/core.h:244:72: error: unknown type name 'TOX_CONNECTION'
static void onConnectionStatusChanged(Tox* tox, uint32_t friendId, TOX_CONNECTION status, void* core);
^
../../qtox/src/core/core.h:306:5: error: unknown type name 'TOX_PASS_KEY'
TOX_PASS_KEY* pwsaltedkeys[PasswordType::ptCounter] = {nullptr}; // use the pw's hash as the "pw"
^
../../qtox/src/core/core.h:313:5: error: unknown type name 'TOX_PASS_KEY'
TOX_PASS_KEY* backupkeys[PasswordType::ptCounter] = {nullptr};
^
In file included from ../src/widget/form/settings/privacyform.cpp:22:
../../qtox/src/core/core.h:236:62: error: unknown type name 'TOX_MESSAGE_TYPE'
static void onFriendMessage(Tox* tox, uint32_t friendId, TOX_MESSAGE_TYPE type,
^
../../qtox/src/core/core.h:243:66: error: unknown type name 'TOX_USER_STATUS'; did you mean 'TOX_USERSTATUS'?
static void onUserStatusChanged(Tox* tox, uint32_t friendId, TOX_USER_STATUS userstatus, void* core);
^~~~~~~~~~~~~~~
TOX_USERSTATUS
../libs/include/tox/tox.h:78:1: note: 'TOX_USERSTATUS' declared here
TOX_USERSTATUS;
^
In file included from ../src/widget/form/settings/privacyform.cpp:22:
../../qtox/src/core/core.h:244:72: error: unknown type name 'TOX_CONNECTION'
static void onConnectionStatusChanged(Tox* tox, uint32_t friendId, TOX_CONNECTION status, void* core);
^
../../qtox/src/core/core.h:306:5: error: unknown type name 'TOX_PASS_KEY'
TOX_PASS_KEY* pwsaltedkeys[PasswordType::ptCounter] = {nullptr}; // use the pw's hash as the "pw"
^
../../qtox/src/core/core.h:313:5: error: unknown type name 'TOX_PASS_KEY'
TOX_PASS_KEY* backupkeys[PasswordType::ptCounter] = {nullptr};
^
In file included from ../src/widget/form/addfriendform.cpp:26:
../../qtox/src/core/core.h:236:62: error: unknown type name 'TOX_MESSAGE_TYPE'
static void onFriendMessage(Tox* tox, uint32_t friendId, TOX_MESSAGE_TYPE type,
^
../../qtox/src/core/core.h:243:66: error: unknown type name 'TOX_USER_STATUS'; did you mean 'TOX_USERSTATUS'?
static void onUserStatusChanged(Tox* tox, uint32_t friendId, TOX_USER_STATUS userstatus, void* core);
^~~~~~~~~~~~~~~
TOX_USERSTATUS
../libs/include/tox/tox.h:78:1: note: 'TOX_USERSTATUS' declared here
TOX_USERSTATUS;
^
In file included from In file included from ../src/widget/form/addfriendform.cpp:26:
../../qtox/src/core/core.h:244:72: error: unknown type name 'TOX_CONNECTION'
static void onConnectionStatusChanged(Tox* tox, uint32_t friendId, TOX_CONNECTION status, void* core);
^
../src/widget/form/filesform.cpp:19:
In file included from ../../qtox/src/widget/widget.h:26:
In file included from ../../qtox/src/widget/form/profileform.h:24:
../../qtox/src/core/core.h:236:62: error: unknown type name 'TOX_MESSAGE_TYPE'
static void onFriendMessage(Tox* tox, uint32_t friendId, TOX_MESSAGE_TYPE type,
^
../../qtox/src/core/core.h:306:5: error: unknown type name 'TOX_PASS_KEY'
TOX_PASS_KEY* pwsaltedkeys[PasswordType::ptCounter] = {nullptr}; // use the pw's hash as the "pw"
^
../../qtox/src/core/core.h:243:66: error: unknown type name 'TOX_USER_STATUS'; did you mean 'TOX_USERSTATUS'?
static void onUserStatusChanged(Tox* tox, uint32_t friendId, TOX_USER_STATUS userstatus, void* core);
^~~~~~~~~~~~~~~
TOX_USERSTATUS
../libs/include/tox/tox.h:78:1: note: 'TOX_USERSTATUS' declared here
TOX_USERSTATUS;
^
../../qtox/src/core/core.h:313:5: error: unknown type name 'TOX_PASS_KEY'
TOX_PASS_KEY* backupkeys[PasswordType::ptCounter] = {nullptr};
^
In file included from ../src/widget/form/filesform.cpp:19:
In file included from ../../qtox/src/widget/widget.h:26:
In file included from ../../qtox/src/widget/form/profileform.h:24:
../../qtox/src/core/core.h:244:72: error: unknown type name 'TOX_CONNECTION'
static void onConnectionStatusChanged(Tox* tox, uint32_t friendId, TOX_CONNECTION status, void* core);
^
In file included from ../src/widget/form/settings/generalform.cpp:20:
In file included from ../../qtox/src/widget/widget.h:26:
In file included from ../../qtox/src/widget/form/profileform.h:24:
../../qtox/src/core/core.h:236:62: error: unknown type name 'TOX_MESSAGE_TYPE'
static void onFriendMessage(Tox* tox, uint32_t friendId, TOX_MESSAGE_TYPE type,
^
../../qtox/src/core/core.h:306:5: error: unknown type name 'TOX_PASS_KEY'
TOX_PASS_KEY* pwsaltedkeys[PasswordType::ptCounter] = {nullptr}; // use the pw's hash as the "pw"
^
../../qtox/src/core/core.h:313:5: error: unknown type name 'TOX_PASS_KEY'
TOX_PASS_KEY* backupkeys[PasswordType::ptCounter] = {nullptr};
^
../../qtox/src/core/core.h:243:66: error: unknown type name 'TOX_USER_STATUS'; did you mean 'TOX_USERSTATUS'?
static void onUserStatusChanged(Tox* tox, uint32_t friendId, TOX_USER_STATUS userstatus, void* core);
^~~~~~~~~~~~~~~
TOX_USERSTATUS
../libs/include/tox/tox.h:78:1: note: 'TOX_USERSTATUS' declared here
TOX_USERSTATUS;
^
In file included from ../src/widget/form/settings/generalform.cpp:20:
In file included from ../../qtox/src/widget/widget.h:26:
In file included from ../../qtox/src/widget/form/profileform.h:24:
../../qtox/src/core/core.h:244:72: error: unknown type name 'TOX_CONNECTION'
static void onConnectionStatusChanged(Tox* tox, uint32_t friendId, TOX_CONNECTION status, void* core);
^
../../qtox/src/core/core.h:306:5: error: unknown type name 'TOX_PASS_KEY'
TOX_PASS_KEY* pwsaltedkeys[PasswordType::ptCounter] = {nullptr}; // use the pw's hash as the "pw"
^
../../qtox/src/core/core.h:313:5: error: unknown type name 'TOX_PASS_KEY'
TOX_PASS_KEY* backupkeys[PasswordType::ptCounter] = {nullptr};
^
In file included from ../src/widget/form/addfriendform.cpp:17:
In file included from ../src/widget/form/addfriendform.h:20:
In file included from /Users/tucnak/Qt/5.4/clang_64/lib/QtWidgets.framework/Headers/QVBoxLayout:1:
In file included from /Users/tucnak/Qt/5.4/clang_64/lib/QtWidgets.framework/Headers/qboxlayout.h:37:
In file included from /Users/tucnak/Qt/5.4/clang_64/lib/QtWidgets.framework/Headers/qlayout.h:37:
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:235:28: error: cannot initialize a parameter of type 'const QObject *' with an lvalue of type 'const typename QtPrivate::FunctionPointer<void (Core::*)(const QString &)>::Object *' (aka 'const Core *')
return connectImpl(sender, reinterpret_cast<void **>(&signal),
^~~~~~
../src/widget/form/addfriendform.cpp:56:5: note: in instantiation of function template specialization 'QObject::connect<void (Core::*)(const QString &), void (AddFriendForm::*)(const QString &)>' requested here
connect(Nexus::getCore(), &Core::usernameSet, this, &AddFriendForm::onUsernameSet);
^
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:467:63: note: passing argument to parameter 'sender' here
static QMetaObject::Connection connectImpl(const QObject *sender, void **signal,
^
6 errors generated.
make: *** [addfriendform.o] Error 1
5 errors generated.
make: *** [privacyform.o] Error 1
In file included from ../src/widget/form/profileform.cpp:17:
In file included from ../../qtox/src/core/core.h:21:
In file included from ../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/QObject:1:
/Users/tucnak/Qt/5.4/clang_64/lib/QtCore.framework/Headers/qobject.h:235:28: error: cannot initialize a parameter of type 'const QObject *' with an lvalue of type 'const typename QtPrivate::FunctionPointer<void (Core::*)(const QString &)>::Object *' (aka 'const Core *')
return connectImpl(sender, reinterpret_cast<void **>(&signal),
^~~~~~
../src/widget/form/profileform.cpp:102:5: note: in instantiation of function template specialization 'QObject::connect<void (Core::*)(const QString &), void (ProfileForm::*)(const QString &)>' requested here
connect(core, &Core::idSet, this, &ProfileForm::setToxId);
^
/Users/tucnak/Qt/5.4/clang_64/lib/QtCore.framework/Headers/qobject.h:467:63: note: passing argument to parameter 'sender' here
static QMetaObject::Connection connectImpl(const QObject *sender, void **signal,
^
/Users/tucnak/Qt/5.4/clang_64/lib/QtCore.framework/Headers/qobject.h:235:28: error: cannot initialize a parameter of type 'const QObject *' with an lvalue of type 'const typename QtPrivate::FunctionPointer<void (Core::*)(Status)>::Object *' (aka 'const Core *')
return connectImpl(sender, reinterpret_cast<void **>(&signal),
^~~~~~
../src/widget/form/profileform.cpp:103:5: note: in instantiation of function template specialization 'QObject::connect<void (Core::*)(Status), void (ProfileForm::*)(Status)>' requested here
connect(core, &Core::statusSet, this, &ProfileForm::onStatusSet);
^
/Users/tucnak/Qt/5.4/clang_64/lib/QtCore.framework/Headers/qobject.h:467:63: note: passing argument to parameter 'sender' here
5 errors generated.
static QMetaObject::Connection connectImpl(const QObject *sender, void **signal,
^
/Users/tucnak/Qt/5.4/clang_64/lib/QtCore.framework/Headers/qobject.h:235:28: error: cannot initialize a parameter of type 'const QObject *' with an lvalue of type 'const typename QtPrivate::FunctionPointer<void (Core::*)(unsigned int, int, bool)>::Object *' (aka 'const Core *')
return connectImpl(sender, reinterpret_cast<void **>(&signal),
^~~~~~
../src/widget/form/profileform.cpp:113:5: note: in instantiation of function template specialization 'QObject::connect<void (Core::*)(unsigned int, int, bool), void (ProfileForm::*)()>' requested here
connect(core, &Core::avStart, this, &ProfileForm::disableSwitching);
^
/Users/tucnak/Qt/5.4/clang_64/lib/QtCore.framework/Headers/qobject.h:467:63: note: passing argument to parameter 'sender' here
static QMetaObject::Connection connectImpl(const QObject *sender, void **signal,
^
/Users/tucnak/Qt/5.4/clang_64/lib/QtCore.framework/Headers/qobject.h:235:28: error: cannot initialize a parameter of type 'const QObject *' with an lvalue of type 'const typename QtPrivate::FunctionPointer<void (Core::*)(unsigned int, int)>::Object *' (aka 'const Core *')
return connectImpl(sender, reinterpret_cast<void **>(&signal),
^~~~~~
../src/widget/form/profileform.cpp:117:5: note: in instantiation of function template specialization 'QObject::connect<void (Core::*)(unsigned int, int), void (ProfileForm::*)()>' requested here
connect(core, &Core::avCancel, this, &ProfileForm::enableSwitching);
^
/Users/tucnak/Qt/5.4/clang_64/lib/QtCore.framework/Headers/qobject.h:467:63: note: passing argument to parameter 'sender' here
static QMetaObject::Connection connectImpl(const QObject *sender, void **signal,
^
make: *** [filesform.o] Error 1
/Users/tucnak/Qt/5.4/clang_64/lib/QtCore.framework/Headers/qobject.h:345:28: error: cannot initialize a parameter of type 'const QObject *' with an lvalue of type 'const typename QtPrivate::FunctionPointer<void (Core::*)(const QString &)>::Object *' (aka 'const Core *')
return connectImpl(sender, reinterpret_cast<void **>(&signal), context, 0,
^~~~~~
../src/widget/form/profileform.cpp:123:5: note: in instantiation of function template specialization 'QObject::connect<void (Core::*)(const QString &), (lambda at ../src/widget/form/profileform.cpp:123:45)>' requested here
connect(core, &Core::usernameSet, this, [=](const QString& val) { bodyUI->userName->setText(val); });
^
/Users/tucnak/Qt/5.4/clang_64/lib/QtCore.framework/Headers/qobject.h:467:63: note: passing argument to parameter 'sender' here
static QMetaObject::Connection connectImpl(const QObject *sender, void **signal,
^
/Users/tucnak/Qt/5.4/clang_64/lib/QtCore.framework/Headers/qobject.h:345:28: error: cannot initialize a parameter of type 'const QObject *' with an lvalue of type 'const typename QtPrivate::FunctionPointer<void (Core::*)(const QString &)>::Object *' (aka 'const Core *')
return connectImpl(sender, reinterpret_cast<void **>(&signal), context, 0,
^~~~~~
../src/widget/form/profileform.cpp:124:5: note: in instantiation of function template specialization 'QObject::connect<void (Core::*)(const QString &), (lambda at ../src/widget/form/profileform.cpp:124:50)>' requested here
connect(core, &Core::statusMessageSet, this, [=](const QString& val) { bodyUI->statusMessage->setText(val); });
^
/Users/tucnak/Qt/5.4/clang_64/lib/QtCore.framework/Headers/qobject.h:467:63: note: passing argument to parameter 'sender' here
static QMetaObject::Connection connectImpl(const QObject *sender, void **signal,
^
11 errors generated.
make: *** [profileform.o] Error 1
5 errors generated.
make: *** [generalform.o] Error 1
5 errors generated.
make: *** [settingswidget.o] Error 1
../src/widget/widget.cpp:183:5: error: no matching member function for call to 'connect'
connect(core, SIGNAL(fileDownloadFinished(const QString&)), filesForm, SLOT(onFileDownloadComplete(const QString&)));
^~~~~~~
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:196:36: note: candidate function not viable: no known conversion from 'Core *' to 'const QObject *' for 1st argument
static QMetaObject::Connection connect(const QObject *sender, const char *signal,
^
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:199:36: note: candidate function not viable: no known conversion from 'Core *' to 'const QObject *' for 1st argument
static QMetaObject::Connection connect(const QObject *sender, const QMetaMethod &signal,
^
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:477:41: note: candidate function not viable: no known conversion from 'Core *' to 'const QObject *' for 1st argument
inline QMetaObject::Connection QObject::connect(const QObject *asender, const char *asignal,
^
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:213:43: note: candidate template ignored: substitution failure [with Func1 = const char *, Func2 = const char *]: no type named 'Object' in 'QtPrivate::FunctionPointer<const char *>'
static inline QMetaObject::Connection connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal,
^ ~~~~~~
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:254:13: note: candidate template ignored: substitution failure [with Func1 = const char *, Func2 = const char *]: implicit instantiation of undefined template 'QtPrivate::QEnableIf<false, QMetaObject::Connection>'
connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, const QObject *context, Func2 slot,
^
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:293:13: note: candidate template ignored: substitution failure [with Func1 = const char *, Func2 = const char *]: no type named 'Object' in 'QtPrivate::FunctionPointer<const char *>'
connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, const QObject *context, Func2 slot,
^ ~~~~~~
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:245:13: note: candidate function template not viable: requires 3 arguments, but 4 were provided
connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, Func2 slot)
^
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:285:13: note: candidate function template not viable: requires 3 arguments, but 4 were provided
connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, Func2 slot)
^
../src/widget/widget.cpp:184:5: error: no matching member function for call to 'connect'
connect(core, SIGNAL(fileUploadFinished(const QString&)), filesForm, SLOT(onFileUploadComplete(const QString&)));
^~~~~~~
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:196:36: note: candidate function not viable: no known conversion from 'Core *' to 'const QObject *' for 1st argument
static QMetaObject::Connection connect(const QObject *sender, const char *signal,
^
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:199:36: note: candidate function not viable: no known conversion from 'Core *' to 'const QObject *' for 1st argument
static QMetaObject::Connection connect(const QObject *sender, const QMetaMethod &signal,
^
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:477:41: note: candidate function not viable: no known conversion from 'Core *' to 'const QObject *' for 1st argument
inline QMetaObject::Connection QObject::connect(const QObject *asender, const char *asignal,
^
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:213:43: note: candidate template ignored: substitution failure [with Func1 = const char *, Func2 = const char *]: no type named 'Object' in 'QtPrivate::FunctionPointer<const char *>'
static inline QMetaObject::Connection connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal,
^ ~~~~~~
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:254:13: note: candidate template ignored: substitution failure [with Func1 = const char *, Func2 = const char *]: implicit instantiation of undefined template 'QtPrivate::QEnableIf<false, QMetaObject::Connection>'
connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, const QObject *context, Func2 slot,
^
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:293:13: note: candidate template ignored: substitution failure [with Func1 = const char *, Func2 = const char *]: no type named 'Object' in 'QtPrivate::FunctionPointer<const char *>'
connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, const QObject *context, Func2 slot,
^ ~~~~~~
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:245:13: note: candidate function template not viable: requires 3 arguments, but 4 were provided
connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, Func2 slot)
^
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:285:13: note: candidate function template not viable: requires 3 arguments, but 4 were provided
connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, Func2 slot)
^
../src/widget/widget.cpp:186:5: error: no matching member function for call to 'connect'
connect(core, SIGNAL(selfAvatarChanged(QPixmap)), profileForm, SLOT(onSelfAvatarLoaded(QPixmap)));
^~~~~~~
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:196:36: note: candidate function not viable: no known conversion from 'Core *' to 'const QObject *' for 1st argument
static QMetaObject::Connection connect(const QObject *sender, const char *signal,
^
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:199:36: note: candidate function not viable: no known conversion from 'Core *' to 'const QObject *' for 1st argument
static QMetaObject::Connection connect(const QObject *sender, const QMetaMethod &signal,
^
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:477:41: note: candidate function not viable: no known conversion from 'Core *' to 'const QObject *' for 1st argument
inline QMetaObject::Connection QObject::connect(const QObject *asender, const char *asignal,
^
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:213:43: note: candidate template ignored: substitution failure [with Func1 = const char *, Func2 = const char *]: no type named 'Object' in 'QtPrivate::FunctionPointer<const char *>'
static inline QMetaObject::Connection connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal,
^ ~~~~~~
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:254:13: note: candidate template ignored: substitution failure [with Func1 = const char *, Func2 = const char *]: implicit instantiation of undefined template 'QtPrivate::QEnableIf<false, QMetaObject::Connection>'
connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, const QObject *context, Func2 slot,
^
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:293:13: note: candidate template ignored: substitution failure [with Func1 = const char *, Func2 = const char *]: no type named 'Object' in 'QtPrivate::FunctionPointer<const char *>'
connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, const QObject *context, Func2 slot,
^ ~~~~~~
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:245:13: note: candidate function template not viable: requires 3 arguments, but 4 were provided
connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, Func2 slot)
^
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:285:13: note: candidate function template not viable: requires 3 arguments, but 4 were provided
connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, Func2 slot)
^
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:236:28: error: cannot initialize a parameter of type 'const QObject *' with an lvalue of type 'const typename QtPrivate::FunctionPointer<int (Core::*)(unsigned int, const QString &)>::Object *' (aka 'const Core *')
receiver, reinterpret_cast<void **>(&slot),
^~~~~~~~
../src/widget/widget.cpp:599:5: note: in instantiation of function template specialization 'QObject::connect<void (GenericChatForm::*)(unsigned int, QString), int (Core::*)(unsigned int, const QString &)>' requested here
connect(newfriend->getChatForm(), &GenericChatForm::sendMessage, core, &Core::sendMessage);
^
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:468:63: note: passing argument to parameter 'receiver' here
const QObject *receiver, void **slotPtr,
^
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:236:28: error: cannot initialize a parameter of type 'const QObject *' with an lvalue of type 'const typename QtPrivate::FunctionPointer<void (Core::*)(unsigned int, QString, QString, long long)>::Object *' (aka 'const Core *')
receiver, reinterpret_cast<void **>(&slot),
^~~~~~~~
../src/widget/widget.cpp:601:5: note: in instantiation of function template specialization 'QObject::connect<void (ChatForm::*)(unsigned int, QString, QString, long long), void (Core::*)(unsigned int, QString, QString, long long)>' requested here
connect(newfriend->getChatForm(), &ChatForm::sendFile, core, &Core::sendFile);
^
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:468:63: note: passing argument to parameter 'receiver' here
const QObject *receiver, void **slotPtr,
^
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:236:28: error: cannot initialize a parameter of type 'const QObject *' with an lvalue of type 'const typename QtPrivate::FunctionPointer<void (Core::*)(int)>::Object *' (aka 'const Core *')
receiver, reinterpret_cast<void **>(&slot),
^~~~~~~~
../src/widget/widget.cpp:602:5: note: in instantiation of function template specialization 'QObject::connect<void (ChatForm::*)(int), void (Core::*)(int)>' requested here
connect(newfriend->getChatForm(), &ChatForm::answerCall, core, &Core::answerCall);
^
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:468:63: note: passing argument to parameter 'receiver' here
const QObject *receiver, void **slotPtr,
^
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:236:28: error: cannot initialize a parameter of type 'const QObject *' with an lvalue of type 'const typename QtPrivate::FunctionPointer<void (Core::*)(unsigned int, bool)>::Object *' (aka 'const Core *')
receiver, reinterpret_cast<void **>(&slot),
^~~~~~~~
../src/widget/widget.cpp:605:5: note: in instantiation of function template specialization 'QObject::connect<void (ChatForm::*)(unsigned int, bool), void (Core::*)(unsigned int, bool)>' requested here
connect(newfriend->getChatForm(), &ChatForm::startCall, core, &Core::startCall);
^
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:468:63: note: passing argument to parameter 'receiver' here
const QObject *receiver, void **slotPtr,
^
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:236:28: error: cannot initialize a parameter of type 'const QObject *' with an lvalue of type 'const typename QtPrivate::FunctionPointer<void (Core::*)(int, unsigned int)>::Object *' (aka 'const Core *')
receiver, reinterpret_cast<void **>(&slot),
^~~~~~~~
../src/widget/widget.cpp:606:5: note: in instantiation of function template specialization 'QObject::connect<void (ChatForm::*)(int, unsigned int), void (Core::*)(int, unsigned int)>' requested here
connect(newfriend->getChatForm(), &ChatForm::cancelCall, core, &Core::cancelCall);
^
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:468:63: note: passing argument to parameter 'receiver' here
const QObject *receiver, void **slotPtr,
^
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:235:28: error: cannot initialize a parameter of type 'const QObject *' with an lvalue of type 'const typename QtPrivate::FunctionPointer<void (Core::*)(ToxFile)>::Object *' (aka 'const Core *')
return connectImpl(sender, reinterpret_cast<void **>(&signal),
^~~~~~
../src/widget/widget.cpp:610:5: note: in instantiation of function template specialization 'QObject::connect<void (Core::*)(ToxFile), void (ChatForm::*)(ToxFile)>' requested here
connect(core, &Core::fileReceiveRequested, newfriend->getChatForm(), &ChatForm::onFileRecvRequest);
^
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:467:63: note: passing argument to parameter 'sender' here
static QMetaObject::Connection connectImpl(const QObject *sender, void **signal,
^
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:235:28: error: cannot initialize a parameter of type 'const QObject *' with an lvalue of type 'const typename QtPrivate::FunctionPointer<void (Core::*)(unsigned int, int, bool)>::Object *' (aka 'const Core *')
return connectImpl(sender, reinterpret_cast<void **>(&signal),
^~~~~~
../src/widget/widget.cpp:611:5: note: in instantiation of function template specialization 'QObject::connect<void (Core::*)(unsigned int, int, bool), void (ChatForm::*)(unsigned int, int, bool)>' requested here
connect(core, &Core::avInvite, newfriend->getChatForm(), &ChatForm::onAvInvite);
^
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:467:63: note: passing argument to parameter 'sender' here
static QMetaObject::Connection connectImpl(const QObject *sender, void **signal,
^
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:235:28: error: cannot initialize a parameter of type 'const QObject *' with an lvalue of type 'const typename QtPrivate::FunctionPointer<void (Core::*)(unsigned int, int)>::Object *' (aka 'const Core *')
return connectImpl(sender, reinterpret_cast<void **>(&signal),
^~~~~~
../src/widget/widget.cpp:613:5: note: in instantiation of function template specialization 'QObject::connect<void (Core::*)(unsigned int, int), void (ChatForm::*)(unsigned int, int)>' requested here
connect(core, &Core::avCancel, newfriend->getChatForm(), &ChatForm::onAvCancel);
^
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:467:63: note: passing argument to parameter 'sender' here
static QMetaObject::Connection connectImpl(const QObject *sender, void **signal,
^
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:235:28: error: cannot initialize a parameter of type 'const QObject *' with an lvalue of type 'const typename QtPrivate::FunctionPointer<void (Core::*)(unsigned int)>::Object *' (aka 'const Core *')
return connectImpl(sender, reinterpret_cast<void **>(&signal),
^~~~~~
../src/widget/widget.cpp:621:5: note: in instantiation of function template specialization 'QObject::connect<void (Core::*)(unsigned int), void (ChatForm::*)(unsigned int)>' requested here
connect(core, &Core::avCallFailed, newfriend->getChatForm(), &ChatForm::onAvCallFailed);
^
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:467:63: note: passing argument to parameter 'sender' here
static QMetaObject::Connection connectImpl(const QObject *sender, void **signal,
^
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:235:28: error: cannot initialize a parameter of type 'const QObject *' with an lvalue of type 'const typename QtPrivate::FunctionPointer<void (Core::*)(unsigned int, const QPixmap &)>::Object *' (aka 'const Core *')
return connectImpl(sender, reinterpret_cast<void **>(&signal),
^~~~~~
../src/widget/widget.cpp:623:5: note: in instantiation of function template specialization 'QObject::connect<void (Core::*)(unsigned int, const QPixmap &), void (ChatForm::*)(unsigned int, const QPixmap &)>' requested here
connect(core, &Core::friendAvatarChanged, newfriend->getChatForm(), &ChatForm::onAvatarChange);
^
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:467:63: note: passing argument to parameter 'sender' here
static QMetaObject::Connection connectImpl(const QObject *sender, void **signal,
^
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:235:28: error: cannot initialize a parameter of type 'const QObject *' with an lvalue of type 'const typename QtPrivate::FunctionPointer<void (Core::*)(unsigned int, const QPixmap &)>::Object *' (aka 'const Core *')
return connectImpl(sender, reinterpret_cast<void **>(&signal),
^~~~~~
../src/widget/widget.cpp:624:5: note: in instantiation of function template specialization 'QObject::connect<void (Core::*)(unsigned int, const QPixmap &), void (FriendWidget::*)(int, const QPixmap &)>' requested here
connect(core, &Core::friendAvatarChanged, newfriend->getFriendWidget(), &FriendWidget::onAvatarChange);
^
../../../Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h:467:63: note: passing argument to parameter 'sender' here
static QMetaObject::Connection connectImpl(const QObject *sender, void **signal,
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [widget.o] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment