Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- src/comm/QGCFlightGearLink.cc: In member function 'virtual void QGCFlightGearLink::run()':
- src/comm/QGCFlightGearLink.cc:102:135: error: no matching function for call to 'QGCFlightGearLink::connect(QGCFlightGearLink*, void (QGCHilLink::*)(quint64, qint16, qint16, float, float, quint8, float), UAS*, void (UAS::*)(quint64, qint16, qint16, float, float, quint8, float))'
- _opticalFlowChangedConnection = connect(this, &QGCFlightGearLink::sensorHilOpticalFlowChanged, (UAS*)mav, &UAS::sendHilOpticalFlow);
- ^
- src/comm/QGCFlightGearLink.cc:102:135: note: candidates are:
- In file included from /usr/include/qt/QtCore/qtimer.h:50:0,
- from /usr/include/qt/QtCore/QTimer:1,
- from src/comm/QGCFlightGearLink.cc:33:
- /usr/include/qt/QtCore/qobject.h:198:36: note: static QMetaObject::Connection QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)
- static QMetaObject::Connection connect(const QObject *sender, const char *signal,
- ^
- /usr/include/qt/QtCore/qobject.h:198:36: note: no known conversion for argument 2 from 'void (QGCHilLink::*)(quint64, qint16, qint16, float, float, quint8, float) {aka void (QGCHilLink::*)(long long unsigned int, short int, short int, float, float, unsigned char, float)}' to 'const char*'
- /usr/include/qt/QtCore/qobject.h:201:36: note: static QMetaObject::Connection QObject::connect(const QObject*, const QMetaMethod&, const QObject*, const QMetaMethod&, Qt::ConnectionType)
- static QMetaObject::Connection connect(const QObject *sender, const QMetaMethod &signal,
- ^
- /usr/include/qt/QtCore/qobject.h:201:36: note: no known conversion for argument 2 from 'void (QGCHilLink::*)(quint64, qint16, qint16, float, float, quint8, float) {aka void (QGCHilLink::*)(long long unsigned int, short int, short int, float, float, unsigned char, float)}' to 'const QMetaMethod&'
- /usr/include/qt/QtCore/qobject.h:479:32: note: QMetaObject::Connection QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const
- inline QMetaObject::Connection QObject::connect(const QObject *asender, const char *asignal,
- ^
- /usr/include/qt/QtCore/qobject.h:479:32: note: no known conversion for argument 2 from 'void (QGCHilLink::*)(quint64, qint16, qint16, float, float, quint8, float) {aka void (QGCHilLink::*)(long long unsigned int, short int, short int, float, float, unsigned char, float)}' to 'const char*'
- /usr/include/qt/QtCore/qobject.h:215:43: note: template<class Func1, class Func2> static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2, Qt::ConnectionType)
- static inline QMetaObject::Connection connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal,
- ^
- /usr/include/qt/QtCore/qobject.h:215:43: note: template argument deduction/substitution failed:
- /usr/include/qt/QtCore/qobject.h: In substitution of 'template<class Func1, class Func2> static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2, Qt::ConnectionType) [with Func1 = void (QGCHilLink::*)(long long unsigned int, short int, short int, float, float, unsigned char, float); Func2 = void (UAS::*)(long long unsigned int, short int, short int, float, float, unsigned char, float)]':
- src/comm/QGCFlightGearLink.cc:102:135: required from here
- /usr/include/qt/QtCore/qobject.h:215:43: error: no type named 'Object' in 'struct QtPrivate::FunctionPointer<void (UAS::*)(long long unsigned int, short int, short int, float, float, unsigned char, float)>'
- /usr/include/qt/QtCore/qobject.h:247:13: note: template<class Func1, class Func2> static typename QtPrivate::QEnableIf<((int)(QtPrivate::FunctionPointer<Func2>::ArgumentCount) >= 0), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, Func2)
- connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, Func2 slot)
- ^
- /usr/include/qt/QtCore/qobject.h:247:13: note: template argument deduction/substitution failed:
- src/comm/QGCFlightGearLink.cc:102:135: note: candidate expects 3 arguments, 4 provided
- _opticalFlowChangedConnection = connect(this, &QGCFlightGearLink::sensorHilOpticalFlowChanged, (UAS*)mav, &UAS::sendHilOpticalFlow);
- ^
- In file included from /usr/include/qt/QtCore/qtimer.h:50:0,
- from /usr/include/qt/QtCore/QTimer:1,
- from src/comm/QGCFlightGearLink.cc:33:
- /usr/include/qt/QtCore/qobject.h:256:13: note: template<class Func1, class Func2> static typename QtPrivate::QEnableIf<(((int)(QtPrivate::FunctionPointer<Func2>::ArgumentCount) >= 0) && (! QtPrivate::FunctionPointer<Func2>::IsPointerToMemberFunction)), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType)
- connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, const QObject *context, Func2 slot,
- ^
- /usr/include/qt/QtCore/qobject.h:256:13: note: template argument deduction/substitution failed:
- /usr/include/qt/QtCore/qobject.h: In substitution of 'template<class Func1, class Func2> static typename QtPrivate::QEnableIf<(((int)(QtPrivate::FunctionPointer<Func2>::ArgumentCount) >= 0) && (! QtPrivate::FunctionPointer<Func2>::IsPointerToMemberFunction)), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType) [with Func1 = void (QGCHilLink::*)(long long unsigned int, short int, short int, float, float, unsigned char, float); Func2 = void (UAS::*)(long long unsigned int, short int, short int, float, float, unsigned char, float)]':
- src/comm/QGCFlightGearLink.cc:102:135: required from here
- /usr/include/qt/QtCore/qobject.h:256:13: error: invalid use of incomplete type 'struct QtPrivate::QEnableIf<false, QMetaObject::Connection>'
- In file included from /usr/include/qt/QtCore/qtimer.h:45:0,
- from /usr/include/qt/QtCore/QTimer:1,
- from src/comm/QGCFlightGearLink.cc:33:
- /usr/include/qt/QtCore/qglobal.h:1036:45: error: declaration of 'struct QtPrivate::QEnableIf<false, QMetaObject::Connection>'
- template <bool B, typename T = void> struct QEnableIf;
- ^
- In file included from /usr/include/qt/QtCore/qtimer.h:50:0,
- from /usr/include/qt/QtCore/QTimer:1,
- from src/comm/QGCFlightGearLink.cc:33:
- /usr/include/qt/QtCore/qobject.h:287:13: note: template<class Func1, class Func2> static typename QtPrivate::QEnableIf<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == (-1)), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, Func2)
- connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, Func2 slot)
- ^
- /usr/include/qt/QtCore/qobject.h:287:13: note: template argument deduction/substitution failed:
- src/comm/QGCFlightGearLink.cc:102:135: note: candidate expects 3 arguments, 4 provided
- _opticalFlowChangedConnection = connect(this, &QGCFlightGearLink::sensorHilOpticalFlowChanged, (UAS*)mav, &UAS::sendHilOpticalFlow);
- ^
- In file included from /usr/include/qt/QtCore/qtimer.h:50:0,
- from /usr/include/qt/QtCore/QTimer:1,
- from src/comm/QGCFlightGearLink.cc:33:
- /usr/include/qt/QtCore/qobject.h:295:13: note: template<class Func1, class Func2> static typename QtPrivate::QEnableIf<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == (-1)), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType)
- connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, const QObject *context, Func2 slot,
- ^
- /usr/include/qt/QtCore/qobject.h:295:13: note: template argument deduction/substitution failed:
- /usr/include/qt/QtCore/qobject.h: In substitution of 'template<class Func1, class Func2> static typename QtPrivate::QEnableIf<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == (-1)), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType) [with Func1 = void (QGCHilLink::*)(long long unsigned int, short int, short int, float, float, unsigned char, float); Func2 = void (UAS::*)(long long unsigned int, short int, short int, float, float, unsigned char, float)]':
- src/comm/QGCFlightGearLink.cc:102:135: required from here
- /usr/include/qt/QtCore/qobject.h:295:13: error: no type named 'Object' in 'struct QtPrivate::FunctionPointer<void (QGCHilLink::*)(long long unsigned int, short int, short int, float, float, unsigned char, float)>'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement