Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2014
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.46 KB | None | 0 0
  1. src/comm/QGCFlightGearLink.cc: In member function 'virtual void QGCFlightGearLink::run()':
  2. 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))'
  3. _opticalFlowChangedConnection = connect(this, &QGCFlightGearLink::sensorHilOpticalFlowChanged, (UAS*)mav, &UAS::sendHilOpticalFlow);
  4. ^
  5. src/comm/QGCFlightGearLink.cc:102:135: note: candidates are:
  6. In file included from /usr/include/qt/QtCore/qtimer.h:50:0,
  7. from /usr/include/qt/QtCore/QTimer:1,
  8. from src/comm/QGCFlightGearLink.cc:33:
  9. /usr/include/qt/QtCore/qobject.h:198:36: note: static QMetaObject::Connection QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)
  10. static QMetaObject::Connection connect(const QObject *sender, const char *signal,
  11. ^
  12. /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*'
  13. /usr/include/qt/QtCore/qobject.h:201:36: note: static QMetaObject::Connection QObject::connect(const QObject*, const QMetaMethod&, const QObject*, const QMetaMethod&, Qt::ConnectionType)
  14. static QMetaObject::Connection connect(const QObject *sender, const QMetaMethod &signal,
  15. ^
  16. /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&'
  17. /usr/include/qt/QtCore/qobject.h:479:32: note: QMetaObject::Connection QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const
  18. inline QMetaObject::Connection QObject::connect(const QObject *asender, const char *asignal,
  19. ^
  20. /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*'
  21. /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)
  22. static inline QMetaObject::Connection connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal,
  23. ^
  24. /usr/include/qt/QtCore/qobject.h:215:43: note: template argument deduction/substitution failed:
  25. /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)]':
  26. src/comm/QGCFlightGearLink.cc:102:135: required from here
  27. /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)>'
  28. /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)
  29. connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, Func2 slot)
  30. ^
  31. /usr/include/qt/QtCore/qobject.h:247:13: note: template argument deduction/substitution failed:
  32. src/comm/QGCFlightGearLink.cc:102:135: note: candidate expects 3 arguments, 4 provided
  33. _opticalFlowChangedConnection = connect(this, &QGCFlightGearLink::sensorHilOpticalFlowChanged, (UAS*)mav, &UAS::sendHilOpticalFlow);
  34. ^
  35. In file included from /usr/include/qt/QtCore/qtimer.h:50:0,
  36. from /usr/include/qt/QtCore/QTimer:1,
  37. from src/comm/QGCFlightGearLink.cc:33:
  38. /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)
  39. connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, const QObject *context, Func2 slot,
  40. ^
  41. /usr/include/qt/QtCore/qobject.h:256:13: note: template argument deduction/substitution failed:
  42. /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)]':
  43. src/comm/QGCFlightGearLink.cc:102:135: required from here
  44. /usr/include/qt/QtCore/qobject.h:256:13: error: invalid use of incomplete type 'struct QtPrivate::QEnableIf<false, QMetaObject::Connection>'
  45. In file included from /usr/include/qt/QtCore/qtimer.h:45:0,
  46. from /usr/include/qt/QtCore/QTimer:1,
  47. from src/comm/QGCFlightGearLink.cc:33:
  48. /usr/include/qt/QtCore/qglobal.h:1036:45: error: declaration of 'struct QtPrivate::QEnableIf<false, QMetaObject::Connection>'
  49. template <bool B, typename T = void> struct QEnableIf;
  50. ^
  51. In file included from /usr/include/qt/QtCore/qtimer.h:50:0,
  52. from /usr/include/qt/QtCore/QTimer:1,
  53. from src/comm/QGCFlightGearLink.cc:33:
  54. /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)
  55. connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, Func2 slot)
  56. ^
  57. /usr/include/qt/QtCore/qobject.h:287:13: note: template argument deduction/substitution failed:
  58. src/comm/QGCFlightGearLink.cc:102:135: note: candidate expects 3 arguments, 4 provided
  59. _opticalFlowChangedConnection = connect(this, &QGCFlightGearLink::sensorHilOpticalFlowChanged, (UAS*)mav, &UAS::sendHilOpticalFlow);
  60. ^
  61. In file included from /usr/include/qt/QtCore/qtimer.h:50:0,
  62. from /usr/include/qt/QtCore/QTimer:1,
  63. from src/comm/QGCFlightGearLink.cc:33:
  64. /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)
  65. connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, const QObject *context, Func2 slot,
  66. ^
  67. /usr/include/qt/QtCore/qobject.h:295:13: note: template argument deduction/substitution failed:
  68. /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)]':
  69. src/comm/QGCFlightGearLink.cc:102:135: required from here
  70. /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