Guest User

sowatch qt5 bluetooth compile problems

a guest
Nov 10th, 2013
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.74 KB | None | 0 0
  1. make[1]: Entering directory `/home/mersdk/src/sowatch/libsowatchbt'
  2. g++ -c -m32 -pipe -g -Wall -W -D_REENTRANT -fPIC -DSOWATCHBT_LIBRARY -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_WIDGETS_LIB -DQT_BLUETOOTH_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt5/mkspecs/linux-g++-32 -I. -I../libsowatch -I/usr/include/qt5 -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtBluetooth -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -Imoc -o obj/bluetoothwatch.o bluetoothwatch.cpp
  3. In file included from bluetoothwatch.cpp:1:0:
  4. bluetoothwatch.h:55:56: error: 'sowatch::QBluetoothLocalDevice::HostMode' has not been declared
  5. bluetoothwatch.h:58:43: error: 'sowatch::QBluetoothSocket::SocketError' has not been declared
  6. bluetoothwatch.h:59:43: error: 'sowatch::QBluetoothSocket::SocketState' has not been declared
  7. bluetoothwatch.h:65:20: error: field '_address' has incomplete type
  8. bluetoothwatch.cpp: In constructor 'sowatch::BluetoothWatch::BluetoothWatch(const sowatch::QBluetoothAddress&, QObject*)':
  9. bluetoothwatch.cpp:14:47: error: invalid use of incomplete type 'struct sowatch::QBluetoothLocalDevice'
  10. bluetoothwatch.h:23:1: error: forward declaration of 'struct sowatch::QBluetoothLocalDevice'
  11. bluetoothwatch.cpp:15:7: error: class 'sowatch::BluetoothWatch' does not have any field named '_address'
  12. bluetoothwatch.cpp:23:1: error: expected identifier before '{' token
  13. bluetoothwatch.cpp:25:2: error: '_connectAlignedTimer' was not declared in this scope
  14.  
  15. bluetoothwatch.cpp:32:74: error: no matching function for call to 'sowatch::BluetoothWatch::connect(sowatch::QBluetoothLocalDevice*&, const char*, const char*)'
  16. bluetoothwatch.cpp:32:74: note: candidates are:
  17. /usr/include/qt5/QtCore/qobject.h:198:36: note: static QMetaObject::Connection QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)
  18. /usr/include/qt5/QtCore/qobject.h:198:36: note: candidate expects 5 arguments, 3 provided
  19. /usr/include/qt5/QtCore/qobject.h:201:36: note: static QMetaObject::Connection QObject::connect(const QObject*, const QMetaMethod&, const QObject*, const QMetaMethod&, Qt::ConnectionType)
  20. /usr/include/qt5/QtCore/qobject.h:201:36: note: candidate expects 5 arguments, 3 provided
  21. /usr/include/qt5/QtCore/qobject.h:440:32: note: QMetaObject::Connection QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const
  22. /usr/include/qt5/QtCore/qobject.h:440:32: note: no known conversion for argument 1 from 'sowatch::QBluetoothLocalDevice*' to 'const QObject*'
  23. /usr/include/qt5/QtCore/qobject.h:214:43: note: template<class Func1, class Func2> static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer<Func1>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2, Qt::ConnectionType)
  24. /usr/include/qt5/QtCore/qobject.h:244: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<Func1>::Object*, Func1, Func2)
  25. /usr/include/qt5/QtCore/qobject.h:267: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<Func1>::Object*, Func1, Func2)
  26. bluetoothwatch.cpp:35:15: error: invalid use of incomplete type 'struct sowatch::QBluetoothLocalDevice'
  27. bluetoothwatch.h:23:1: error: forward declaration of 'struct sowatch::QBluetoothLocalDevice'
  28. bluetoothwatch.cpp:36:19: error: invalid use of incomplete type 'struct sowatch::QBluetoothLocalDevice'
  29. bluetoothwatch.h:23:1: error: forward declaration of 'struct sowatch::QBluetoothLocalDevice'
  30. bluetoothwatch.cpp:36:35: error: incomplete type 'sowatch::QBluetoothLocalDevice' used in nested name specifier
  31. bluetoothwatch.cpp: In destructor 'virtual sowatch::BluetoothWatch::~BluetoothWatch()':
  32. bluetoothwatch.cpp:48:10: error: invalid use of incomplete type 'struct sowatch::QBluetoothSocket'
  33. bluetoothwatch.h:21:1: error: forward declaration of 'struct sowatch::QBluetoothSocket'
  34. bluetoothwatch.cpp:49:10: warning: possible problem detected in invocation of delete operator: [enabled by default]
  35. bluetoothwatch.cpp:49:10: warning: invalid use of incomplete type 'struct sowatch::QBluetoothSocket' [enabled by default]
  36. bluetoothwatch.h:21:1: warning: forward declaration of 'struct sowatch::QBluetoothSocket' [enabled by default]
  37. bluetoothwatch.cpp:49:10: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined
  38. bluetoothwatch.cpp: In member function 'void sowatch::BluetoothWatch::scheduleRetryConnect()':
  39. bluetoothwatch.cpp:99:66: error: no matching function for call to 'QTimer::start(int, int)'
  40. bluetoothwatch.cpp:99:66: note: candidates are:
  41. /usr/include/qt5/QtCore/qtimer.h:85:10: note: void QTimer::start(int)
  42. /usr/include/qt5/QtCore/qtimer.h:85:10: note: candidate expects 1 argument, 2 provided
  43. /usr/include/qt5/QtCore/qtimer.h:87:10: note: void QTimer::start()
  44. /usr/include/qt5/QtCore/qtimer.h:87:10: note: candidate expects 0 arguments, 2 provided
  45. bluetoothwatch.cpp:100:24: error: 'class QTimer' has no member named 'lastError'
  46. bluetoothwatch.cpp:100:39: error: 'QSystemTimer' has not been declared
  47. bluetoothwatch.cpp: In member function 'virtual void sowatch::BluetoothWatch::connectToWatch()':
  48. bluetoothwatch.cpp:119:9: warning: possible problem detected in invocation of delete operator: [enabled by default]
  49. bluetoothwatch.cpp:119:9: warning: invalid use of incomplete type 'struct sowatch::QBluetoothSocket' [enabled by default]
  50. bluetoothwatch.h:21:1: warning: forward declaration of 'struct sowatch::QBluetoothSocket' [enabled by default]
  51. bluetoothwatch.cpp:119:9: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined
  52. bluetoothwatch.cpp:120:33: error: incomplete type 'sowatch::QBluetoothSocket' used in nested name specifier
  53. bluetoothwatch.cpp:120:63: error: invalid use of incomplete type 'struct sowatch::QBluetoothSocket'
  54. bluetoothwatch.h:21:1: error: forward declaration of 'struct sowatch::QBluetoothSocket'
  55. bluetoothwatch.cpp:122:69: error: no matching function for call to 'sowatch::BluetoothWatch::connect(sowatch::QBluetoothSocket*&, const char*, const char*)'
  56. bluetoothwatch.cpp:122:69: note: candidates are:
  57. /usr/include/qt5/QtCore/qobject.h:198:36: note: static QMetaObject::Connection QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)
  58. /usr/include/qt5/QtCore/qobject.h:198:36: note: candidate expects 5 arguments, 3 provided
  59. /usr/include/qt5/QtCore/qobject.h:201:36: note: static QMetaObject::Connection QObject::connect(const QObject*, const QMetaMethod&, const QObject*, const QMetaMethod&, Qt::ConnectionType)
  60. /usr/include/qt5/QtCore/qobject.h:201:36: note: candidate expects 5 arguments, 3 provided
  61. /usr/include/qt5/QtCore/qobject.h:440:32: note: QMetaObject::Connection QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const
  62. /usr/include/qt5/QtCore/qobject.h:440:32: note: no known conversion for argument 1 from 'sowatch::QBluetoothSocket*' to 'const QObject*'
  63. /usr/include/qt5/QtCore/qobject.h:214:43: note: template<class Func1, class Func2> static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer<Func1>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2, Qt::ConnectionType)
  64. /usr/include/qt5/QtCore/qobject.h:244: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<Func1>::Object*, Func1, Func2)
  65. /usr/include/qt5/QtCore/qobject.h:267: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<Func1>::Object*, Func1, Func2)
  66. bluetoothwatch.cpp:123:75: error: no matching function for call to 'sowatch::BluetoothWatch::connect(sowatch::QBluetoothSocket*&, const char*, const char*)'
  67. bluetoothwatch.cpp:123:75: note: candidates are:
  68. /usr/include/qt5/QtCore/qobject.h:198:36: note: static QMetaObject::Connection QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)
  69. /usr/include/qt5/QtCore/qobject.h:198:36: note: candidate expects 5 arguments, 3 provided
  70. /usr/include/qt5/QtCore/qobject.h:201:36: note: static QMetaObject::Connection QObject::connect(const QObject*, const QMetaMethod&, const QObject*, const QMetaMethod&, Qt::ConnectionType)
  71. /usr/include/qt5/QtCore/qobject.h:201:36: note: candidate expects 5 arguments, 3 provided
  72. /usr/include/qt5/QtCore/qobject.h:440:32: note: QMetaObject::Connection QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const
  73. /usr/include/qt5/QtCore/qobject.h:440:32: note: no known conversion for argument 1 from 'sowatch::QBluetoothSocket*' to 'const QObject*'
  74. /usr/include/qt5/QtCore/qobject.h:214:43: note: template<class Func1, class Func2> static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer<Func1>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2, Qt::ConnectionType)
  75. /usr/include/qt5/QtCore/qobject.h:244: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<Func1>::Object*, Func1, Func2)
  76. /usr/include/qt5/QtCore/qobject.h:267: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<Func1>::Object*, Func1, Func2)
  77. bluetoothwatch.cpp:125:58: error: no matching function for call to 'sowatch::BluetoothWatch::connect(sowatch::QBluetoothSocket*&, const char*, const char*)'
  78. bluetoothwatch.cpp:125:58: note: candidates are:
  79. /usr/include/qt5/QtCore/qobject.h:198:36: note: static QMetaObject::Connection QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)
  80. /usr/include/qt5/QtCore/qobject.h:198:36: note: candidate expects 5 arguments, 3 provided
  81. /usr/include/qt5/QtCore/qobject.h:201:36: note: static QMetaObject::Connection QObject::connect(const QObject*, const QMetaMethod&, const QObject*, const QMetaMethod&, Qt::ConnectionType)
  82. /usr/include/qt5/QtCore/qobject.h:201:36: note: candidate expects 5 arguments, 3 provided
  83. /usr/include/qt5/QtCore/qobject.h:440:32: note: QMetaObject::Connection QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const
  84. /usr/include/qt5/QtCore/qobject.h:440:32: note: no known conversion for argument 1 from 'sowatch::QBluetoothSocket*' to 'const QObject*'
  85. /usr/include/qt5/QtCore/qobject.h:214:43: note: template<class Func1, class Func2> static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer<Func1>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2, Qt::ConnectionType)
  86. /usr/include/qt5/QtCore/qobject.h:244: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<Func1>::Object*, Func1, Func2)
  87. /usr/include/qt5/QtCore/qobject.h:267: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<Func1>::Object*, Func1, Func2)
  88. bluetoothwatch.cpp:127:58: error: no matching function for call to 'sowatch::BluetoothWatch::connect(sowatch::QBluetoothSocket*&, const char*, const char*)'
  89. bluetoothwatch.cpp:127:58: note: candidates are:
  90. /usr/include/qt5/QtCore/qobject.h:198:36: note: static QMetaObject::Connection QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)
  91. /usr/include/qt5/QtCore/qobject.h:198:36: note: candidate expects 5 arguments, 3 provided
  92. /usr/include/qt5/QtCore/qobject.h:201:36: note: static QMetaObject::Connection QObject::connect(const QObject*, const QMetaMethod&, const QObject*, const QMetaMethod&, Qt::ConnectionType)
  93. /usr/include/qt5/QtCore/qobject.h:201:36: note: candidate expects 5 arguments, 3 provided
  94. /usr/include/qt5/QtCore/qobject.h:440:32: note: QMetaObject::Connection QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const
  95. /usr/include/qt5/QtCore/qobject.h:440:32: note: no known conversion for argument 1 from 'sowatch::QBluetoothSocket*' to 'const QObject*'
  96. /usr/include/qt5/QtCore/qobject.h:214:43: note: template<class Func1, class Func2> static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer<Func1>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2, Qt::ConnectionType)
  97. /usr/include/qt5/QtCore/qobject.h:244: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<Func1>::Object*, Func1, Func2)
  98. /usr/include/qt5/QtCore/qobject.h:267: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<Func1>::Object*, Func1, Func2)
  99. bluetoothwatch.cpp:129:9: error: invalid use of incomplete type 'struct sowatch::QBluetoothSocket'
  100. bluetoothwatch.h:21:1: error: forward declaration of 'struct sowatch::QBluetoothSocket'
  101. bluetoothwatch.cpp:129:28: error: '_address' was not declared in this scope
  102. bluetoothwatch.cpp: At global scope:
  103. bluetoothwatch.cpp:137:71: error: variable or field 'handleLocalDevModeChanged' declared void
  104. bluetoothwatch.cpp:137:48: error: incomplete type 'sowatch::QBluetoothLocalDevice' used in nested name specifier
  105.  
  106.  
  107.  
  108.  
  109. make[1]: Leaving directory `/home/mersdk/src/sowatch/libsowatchbt'
  110. make[1]: *** [obj/bluetoothwatch.o] Error 1
  111. make: *** [sub-libsowatchbt-make_first] Error 2
  112.  
  113. 09:04:38: The process "/home/dm8tbr/.config/SailfishAlpha2/mer-sdk-tools/MerSDK/SailfishOS-i486-x86/make" exited with code 2.
  114. Error while building/deploying project sowatch (kit: MerSDK-SailfishOS-i486-x86)
  115. When executing step 'Make'
  116. 09:04:38: Elapsed time: 01:33.
Add Comment
Please, Sign In to add comment