Hello,

I noticed late tonight that a new WSJT-X release was available, then I
downloaded and compiled 2.2.1.tgz in the same way I've done so far, but
now I faced the following error related to a Qt5 deprecated statement:

Scanning dependencies of target wsjtx_udp-static
[  0%] Building CXX object
CMakeFiles/wsjtx_udp-static.dir/UDPExamples/MessageServer.cpp.o
/home/marco/WSJT-X_build/build/wsjtx-2.2.1/wsjtx-prefix/src/wsjtx/UDPExamples/MessageServer.cpp:
In constructor ‘MessageServer::impl::impl(MessageServer*, const
QString&, const QString&)’:
/home/marco/WSJT-X_build/build/wsjtx-2.2.1/wsjtx-prefix/src/wsjtx/UDPExamples/MessageServer.cpp:42:75:
error: ‘void QAbstractSocket::error(QAbstractSocket::SocketError)’ is
deprecated: Use
QAbstractSocket::errorOccurred(QAbstractSocket::SocketError) instead
[-Werror=deprecated-declarations]
   42 |     connect (this, static_cast<void (impl::*) (SocketError)>
(&impl::error)
      |
         ^
In file included from /usr/include/qt5/QtNetwork/qhostaddress.h:48,
                 from /usr/include/qt5/QtNetwork/QHostAddress:1,
                 from
/home/marco/WSJT-X_build/build/wsjtx-2.2.1/wsjtx-prefix/src/wsjtx/UDPExamples/MessageServer.hpp:7,
                 from
/home/marco/WSJT-X_build/build/wsjtx-2.2.1/wsjtx-prefix/src/wsjtx/UDPExamples/MessageServer.cpp:1:
/usr/include/qt5/QtNetwork/qabstractsocket.h:211:10: note: declared here
  211 |     void error(QAbstractSocket::SocketError);
      |          ^~~~~
/home/marco/WSJT-X_build/build/wsjtx-2.2.1/wsjtx-prefix/src/wsjtx/UDPExamples/MessageServer.cpp:42:75:
error: ‘void QAbstractSocket::error(QAbstractSocket::SocketError)’ is
deprecated: Use
QAbstractSocket::errorOccurred(QAbstractSocket::SocketError) instead
[-Werror=deprecated-declarations]
   42 |     connect (this, static_cast<void (impl::*) (SocketError)>
(&impl::error)
      |
         ^
In file included from /usr/include/qt5/QtNetwork/qhostaddress.h:48,
                 from /usr/include/qt5/QtNetwork/QHostAddress:1,
                 from
/home/marco/WSJT-X_build/build/wsjtx-2.2.1/wsjtx-prefix/src/wsjtx/UDPExamples/MessageServer.hpp:7,
                 from
/home/marco/WSJT-X_build/build/wsjtx-2.2.1/wsjtx-prefix/src/wsjtx/UDPExamples/MessageServer.cpp:1:
/usr/include/qt5/QtNetwork/qabstractsocket.h:211:10: note: declared here
  211 |     void error(QAbstractSocket::SocketError);
      |          ^~~~~
cc1plus: all warnings being treated as errors

If someone could suggest me a workaround, I would be very thankful.

-- 

73 de Marco, PY1ZRJ (former IK5BCU)


_______________________________________________
wsjt-devel mailing list
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel

Reply via email to