While trying to build wsjtx 1.9.1 I got a build error. It looks like the
long depreciated qt5_use_modules macro has been removed from the release of
qt5 in Fedora Rawhide.

I made some simple changes as recommended[1], here's an example snippet:

@@ -1343,7 +1343,8 @@ else ()
       )
   endif ()
 endif ()
-qt5_use_modules (wsjtx SerialPort) # not sure why the interface link
library syntax above doesn't work
+find_package(Qt5SerialPort)
+target_link_libraries (wsjtx Qt5::SerialPort) # not sure why the interface
link library syntax above doesn't work

 # make a library for WSJT-X UDP servers
 # add_library (wsjtx_udp SHARED ${UDP_library_CXXSRCS})

The find_package stuff could probably go higher up in the CMakeLists.txt
but this approach in a couple of places allowed me to build 1.9.1.

Thanks,
Richard
KF5OIM

[1] https://doc.qt.io/archives/qt-5.10/cmake-manual.html
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
wsjt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wsjt-devel

Reply via email to