Il 08/06/20 09:49, Bill Somerville ha scritto: > On 08/06/2020 13:45, Marco Calistri wrote: >> Il 08/06/20 09:06, Bill Somerville ha scritto: >>> On 08/06/2020 04:22, Marco Calistri wrote: >>>> 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) >>> Hi Marco, >>> >>> what Qt version does you your distribution have? >>> >>> The following patch will get you going for now. >>> >>> 73 >>> Bill >>> G4WJS. >>> >>> diff --git a/CMakeLists.txt b/CMakeLists.txt >>> index a54983a5b..bd80913e4 100644 >>> --- a/CMakeLists.txt >>> +++ b/CMakeLists.txt >>> @@ -921,7 +921,7 @@ set (CMAKE_VISIBILITY_INLINES_HIDDEN ON) >>> # >>> set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra") >>> >>> -set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wall -Wextra >>> -fexceptions -frtti") >>> +set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -fexceptions >>> -frtti") >>> >>> if (NOT APPLE) >>> set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-pragmas") >> GM dear Bill! >> >> As I wrote before to Steve, I'm using latest Qt development >> version:5.15.0-1.2 >> >> Repository : Repo-Oss >> Nome : libQt5Network-devel >> Versione : 5.15.0-1.2 >> Arch. : x86_64 >> Fornitore : openSUSE >> Dimensione installata : 442,8 KiB >> installato : Sì >> Stato : aggiornato >> >> May be is too recent? >> >> Thanks for the appended patch, I will try it. >> >> Regards, >> -- 73 de Marco, PY1ZRJ (former IK5BCU) > > Hi Marco, > > WSJT-X is not yet validated with Qt v5.15, nor Qt v6. We will probably > support Qt 5.15 for the next release. My patch should be ok to get your > build running, it just removes the compiler switch to convert warnings > to errors. Please let us know how it goes? > > 73 > Bill > G4WJS.
Very good Bill, I'm just trying again, let you know ASAP. Regards, -- 73 de Marco, PY1ZRJ (former IK5BCU) _______________________________________________ wsjt-devel mailing list wsjt-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wsjt-devel