On 16/11/2020 18:32, John Nelson via wsjt-devel wrote:
Hi Bill,

I have found a solution.

1.   remade the boost libraries with:    b2  link=static  runtime-link=static  
install

2.   made three changes to  CMakeLists.txt

79,80d78
< # JMN Added next line
< set (Boost_USE_STATIC_RUNTIME ON)
1067c1065
< #target_compile_definitions (wsjt_cxx PUBLIC BOOST_LOG_DYN_LINK)
---
target_compile_definitions (wsjt_cxx PUBLIC BOOST_LOG_DYN_LINK)
1315c1313
< #target_compile_definitions (wsjt_qt PUBLIC UDP_STATIC_DEFINE 
BOOST_LOG_DYN_LINK)
---
target_compile_definitions (wsjt_qt PUBLIC UDP_STATIC_DEFINE BOOST_LOG_DYN_LINK)
Now linking uses static libraries.  Not sure why BOOST_LOG_DYN_LINK is there - 
contradicts  USE_STATIC_RUNTIIME

Compiled version is running but will make further tests…

— John G4KLA

Hi John,

BOOST_LOG_DYN_LINK does not contradict USE_STATIC_RUNTIME, the latter is to do with linking system libraries on platforms and toolchains where they are available, which is not macOS.

The intent was to dynamically link the Boost libraries, you are somewhat on your own if you statically link the ones that allow it.

73
Bill
G4WJS.

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

Reply via email to