Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   CXX      qt/filesharing/qt_libbitcoinqt_a-connectionwidget.o
  2. qt/filesharing/connectionwidget.cpp: In constructor ‘ConnectionWidget::ConnectionWidget(QWidget*):
  3. qt/filesharing/connectionwidget.cpp:17:44: error: invalid use of incomplete type ‘class QUdpSocket
  4.      , m_broadcastSocket(new QUdpSocket(this))
  5.                                             ^
  6. In file included from qt/filesharing/connectionwidget.cpp:1:0:
  7. qt/filesharing/connectionwidget.h:9:7: note: forward declaration of ‘class QUdpSocket
  8.  class QUdpSocket;
  9.        ^~~~~~~~~~
  10. qt/filesharing/connectionwidget.cpp:24:22: error: invalid use of incomplete type ‘class QUdpSocket
  11.      m_broadcastSocket->bind(/*QHostAddress::Any, */DiscoveryPort/*, QAbstractSocket::ReuseAddressHint*/);
  12.                       ^~
  13. In file included from qt/filesharing/connectionwidget.cpp:1:0:
  14. qt/filesharing/connectionwidget.h:9:7: note: forward declaration of ‘class QUdpSocket
  15.  class QUdpSocket;
  16.        ^~~~~~~~~~
  17. qt/filesharing/connectionwidget.cpp:26:87: error: no matching function for call to ‘ConnectionWidget::connect(QUdpSocket*&, const char*, ConnectionWidget*, const char*)
  18.      connect(m_broadcastSocket, SIGNAL(readyRead()), this, SLOT(readPendingDatagrams()));
  19.                                                                                        ^
  20. In file included from /home/hotswap/peersend/depends/x86_64-w64-mingw32/share/../include/QtWidgets/qwidget.h:45:0,
  21.                  from /home/hotswap/peersend/depends/x86_64-w64-mingw32/share/../include/QtWidgets/QWidget:1,
  22.                  from qt/filesharing/connectionwidget.h:4,
  23.                  from qt/filesharing/connectionwidget.cpp:1:
  24. /home/hotswap/peersend/depends/x86_64-w64-mingw32/share/../include/QtCore/qobject.h:214:36: note: candidate: static QMetaObject::Connection QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)
  25.      static QMetaObject::Connection connect(const QObject *sender, const char *signal,
  26.                                     ^~~~~~~
  27. /home/hotswap/peersend/depends/x86_64-w64-mingw32/share/../include/QtCore/qobject.h:214:36: note:   no known conversion for argument 1 from ‘QUdpSocket*’ to ‘const QObject*
  28. /home/hotswap/peersend/depends/x86_64-w64-mingw32/share/../include/QtCore/qobject.h:217:36: note: candidate: static QMetaObject::Connection QObject::connect(const QObject*, const QMetaMethod&, const QObject*, const QMetaMethod&, Qt::ConnectionType)
  29.      static QMetaObject::Connection connect(const QObject *sender, const QMetaMethod &signal,
  30.                                     ^~~~~~~
  31. /home/hotswap/peersend/depends/x86_64-w64-mingw32/share/../include/QtCore/qobject.h:217:36: note:   no known conversion for argument 1 from ‘QUdpSocket*’ to ‘const QObject*
  32. /home/hotswap/peersend/depends/x86_64-w64-mingw32/share/../include/QtCore/qobject.h:469:32: note: candidate: QMetaObject::Connection QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const
  33.  inline QMetaObject::Connection QObject::connect(const QObject *asender, const char *asignal,
  34.                                 ^~~~~~~
  35. /home/hotswap/peersend/depends/x86_64-w64-mingw32/share/../include/QtCore/qobject.h:469:32: note:   no known conversion for argument 1 from ‘QUdpSocket*’ to ‘const QObject*
  36. /home/hotswap/peersend/depends/x86_64-w64-mingw32/share/../include/QtCore/qobject.h:234:43: note: candidate: 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)
  37.      static inline QMetaObject::Connection connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal,
  38.                                            ^~~~~~~
  39. /home/hotswap/peersend/depends/x86_64-w64-mingw32/share/../include/QtCore/qobject.h:234:43: note:   template argument deduction/substitution failed:
  40. /home/hotswap/peersend/depends/x86_64-w64-mingw32/share/../include/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 = const char*; Func2 = const char*]:
  41. qt/filesharing/connectionwidget.cpp:26:87:   required from here
  42. /home/hotswap/peersend/depends/x86_64-w64-mingw32/share/../include/QtCore/qobject.h:234:43: error: no type named ‘Object’ in ‘struct QtPrivate::FunctionPointer<const char*>
  43. /home/hotswap/peersend/depends/x86_64-w64-mingw32/share/../include/QtCore/qobject.h:266:13: note: candidate: template<class Func1, class Func2> static typename std::enable_if<((int)(QtPrivate::FunctionPointer<Func2>::ArgumentCount) >= 0), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, Func2)
  44.              connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, Func2 slot)
  45.              ^~~~~~~
  46. /home/hotswap/peersend/depends/x86_64-w64-mingw32/share/../include/QtCore/qobject.h:266:13: note:   template argument deduction/substitution failed:
  47. qt/filesharing/connectionwidget.cpp:26:87: note:   candidate expects 3 arguments, 4 provided
  48.      connect(m_broadcastSocket, SIGNAL(readyRead()), this, SLOT(readPendingDatagrams()));
  49.                                                                                        ^
  50. In file included from /home/hotswap/peersend/depends/x86_64-w64-mingw32/share/../include/QtWidgets/qwidget.h:45:0,
  51.                  from /home/hotswap/peersend/depends/x86_64-w64-mingw32/share/../include/QtWidgets/QWidget:1,
  52.                  from qt/filesharing/connectionwidget.h:4,
  53.                  from qt/filesharing/connectionwidget.cpp:1:
  54. /home/hotswap/peersend/depends/x86_64-w64-mingw32/share/../include/QtCore/qobject.h:275:13: note: candidate: template<class Func1, class Func2> static typename std::enable_if<(((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)
  55.              connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, const QObject *context, Func2 slot,
  56.              ^~~~~~~
  57. /home/hotswap/peersend/depends/x86_64-w64-mingw32/share/../include/QtCore/qobject.h:275:13: note:   template argument deduction/substitution failed:
  58. /home/hotswap/peersend/depends/x86_64-w64-mingw32/share/../include/QtCore/qobject.h: In substitution of ‘template<class Func1, class Func2> static typename std::enable_if<(((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 = const char*; Func2 = const char*]:
  59. qt/filesharing/connectionwidget.cpp:26:87:   required from here
  60. /home/hotswap/peersend/depends/x86_64-w64-mingw32/share/../include/QtCore/qobject.h:275:13: error: no type named ‘type’ in ‘struct std::enable_if<false, QMetaObject::Connection>
  61. /home/hotswap/peersend/depends/x86_64-w64-mingw32/share/../include/QtCore/qobject.h:306:13: note: candidate: template<class Func1, class Func2> static typename std::enable_if<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == -1), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, Func2)
  62.              connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, Func2 slot)
  63.              ^~~~~~~
  64. /home/hotswap/peersend/depends/x86_64-w64-mingw32/share/../include/QtCore/qobject.h:306:13: note:   template argument deduction/substitution failed:
  65. qt/filesharing/connectionwidget.cpp:26:87: note:   candidate expects 3 arguments, 4 provided
  66.      connect(m_broadcastSocket, SIGNAL(readyRead()), this, SLOT(readPendingDatagrams()));
  67.                                                                                        ^
  68. In file included from /home/hotswap/peersend/depends/x86_64-w64-mingw32/share/../include/QtWidgets/qwidget.h:45:0,
  69.                  from /home/hotswap/peersend/depends/x86_64-w64-mingw32/share/../include/QtWidgets/QWidget:1,
  70.                  from qt/filesharing/connectionwidget.h:4,
  71.                  from qt/filesharing/connectionwidget.cpp:1:
  72. /home/hotswap/peersend/depends/x86_64-w64-mingw32/share/../include/QtCore/qobject.h:314:13: note: candidate: template<class Func1, class Func2> static typename std::enable_if<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == -1), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType)
  73.              connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, const QObject *context, Func2 slot,
  74.              ^~~~~~~
  75. /home/hotswap/peersend/depends/x86_64-w64-mingw32/share/../include/QtCore/qobject.h:314:13: note:   template argument deduction/substitution failed:
  76. /home/hotswap/peersend/depends/x86_64-w64-mingw32/share/../include/QtCore/qobject.h: In substitution of ‘template<class Func1, class Func2> static typename std::enable_if<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == -1), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType) [with Func1 = const char*; Func2 = const char*]:
  77. qt/filesharing/connectionwidget.cpp:26:87:   required from here
  78. /home/hotswap/peersend/depends/x86_64-w64-mingw32/share/../include/QtCore/qobject.h:314:13: error: no type named ‘Object’ in ‘struct QtPrivate::FunctionPointer<const char*>
  79. qt/filesharing/connectionwidget.cpp: In member function ‘void ConnectionWidget::onSearchButtonPressed():
  80. qt/filesharing/connectionwidget.cpp:77:22: error: invalid use of incomplete type ‘class QUdpSocket
  81.      m_broadcastSocket->writeDatagram(DiscoveryWorld.toUtf8(), QHostAddress::Broadcast, DiscoveryPort);
  82.                       ^~
  83. In file included from qt/filesharing/connectionwidget.cpp:1:0:
  84. qt/filesharing/connectionwidget.h:9:7: note: forward declaration of ‘class QUdpSocket
  85.  class QUdpSocket;
  86.        ^~~~~~~~~~
  87. qt/filesharing/connectionwidget.cpp: In member function ‘void ConnectionWidget::readPendingDatagrams():
  88. qt/filesharing/connectionwidget.cpp:82:29: error: invalid use of incomplete type ‘class QUdpSocket
  89.      while (m_broadcastSocket->hasPendingDatagrams()) {
  90.                              ^~
  91. In file included from qt/filesharing/connectionwidget.cpp:1:0:
  92. qt/filesharing/connectionwidget.h:9:7: note: forward declaration of ‘class QUdpSocket
  93.  class QUdpSocket;
  94.        ^~~~~~~~~~
  95. qt/filesharing/connectionwidget.cpp:84:42: error: invalid use of incomplete type ‘class QUdpSocket
  96.          datagram.resize(m_broadcastSocket->pendingDatagramSize());
  97.                                           ^~
  98. In file included from qt/filesharing/connectionwidget.cpp:1:0:
  99. qt/filesharing/connectionwidget.h:9:7: note: forward declaration of ‘class QUdpSocket
  100.  class QUdpSocket;
  101.        ^~~~~~~~~~
  102. qt/filesharing/connectionwidget.cpp:88:26: error: invalid use of incomplete type ‘class QUdpSocket
  103.          m_broadcastSocket->readDatagram(datagram.data(), datagram.size(),
  104.                           ^~
  105. In file included from qt/filesharing/connectionwidget.cpp:1:0:
  106. qt/filesharing/connectionwidget.h:9:7: note: forward declaration of ‘class QUdpSocket
  107.  class QUdpSocket;
  108.        ^~~~~~~~~~
  109. qt/filesharing/connectionwidget.cpp: In member function ‘void ConnectionWidget::processTheDatagram(QByteArray&, QHostAddress&):
  110. qt/filesharing/connectionwidget.cpp:107:20: error: aggregate ‘QUdpSocket sock’ has incomplete type and cannot be defined
  111.          QUdpSocket sock;
  112.                     ^~~~
  113. Makefile:7533: recipe for target 'qt/filesharing/qt_libbitcoinqt_a-connectionwidget.o' failed
  114. make[2]: *** [qt/filesharing/qt_libbitcoinqt_a-connectionwidget.o] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement