On 15/06/2018 14:31, Barry Jackson wrote:
There is another issue due to our migration to qt5-5.11.0.
It is fixed (as far as a completed build goes) with the following
patch provided by one of our qt stack maintainers:
diff -Nru wsjtx/CMakeLists.txt wsjtx/CMakeLists.txt
--- wsjtx/CMakeLists.txt 2018-05-31 02:29:47.000000000 +0200
+++ wsjtx/CMakeLists.txt 2018-06-04 07:04:16.849857440 +0200
@@ -1343,7 +1343,8 @@
)
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})
@@ -1364,7 +1365,7 @@
)
target_compile_definitions (wsjtx_udp-static PUBLIC UDP_STATIC_DEFINE)
#qt5_use_modules (wsjtx_udp Network)
-qt5_use_modules (wsjtx_udp-static Network Gui)
+target_link_libraries (wsjtx_udp-static Qt5::Network Qt5::Gui)
generate_export_header (wsjtx_udp-static BASE_NAME udp)
add_executable (udp_daemon UDPExamples/UDPDaemon.cpp
UDPExamples/udp_daemon.rc ${WSJTX_ICON_FILE})
I have not run wsjtx built with this patch yet.
73
Barry
G4MKT
Hi Barry,
I am aware of the issue that patch resolves, unfortunately we have to
support Qt back to v5.5 and it is only later that the Qt provided CMake
files have the necessary definitions for those macros to work. Rather
than start adding Qt version specific checks to the WSJT-X CMake script
I have decided to hod off for now on this change.
I assume you are aware that the source tarball generated by the
wsjtx-superbuild project can contain patches for both WSJT-X and Hamlib
sources that will be automatically applied when the package is built?
73
Bill
G4WJS.
------------------------------------------------------------------------------
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
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel