Marco,

What OS, Version and Qt version are you using? Is your OS fully updated? Are 
all required dependencies required to build WSJT-X as described in the WSJT-X 
INSTALL and README files deployed? Are you following the instructions to 
compile WSJT-X as described in the WSJT-X INSTALL file?

I run a Ubuntu 20.04 LTE release here that delivers Qt 5.12.8 packages 
natively; I also run the Windows JTSDK 3.1 with the "Experimental" patches 
(v.0.36). Both are pulling Hamlib from the G4WJS repository. I cannot replicate 
what you are observing.

Based on the fact that this has "abended" very early in the WSJT-X compile 
process I would suggest that the first thing that you should check is the Qt 
deployment ! We may be able to assist further once we know a little more about 
your development environment :-)

73,

Steve I
VK3VM / VK3SIR

-----Original Message-----
From: Marco Calistri <py1...@outlook.com> 
Sent: Monday, 8 June 2020 1:22 PM
To: 'WSJT software development' <wsjt-devel@lists.sourceforge.net>
Subject: [wsjt-devel] Error qt5 compiling new WSJTX 2.2.1 source file

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

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

Reply via email to