On 16/11/2020 13:16, John Nelson via wsjt-devel wrote:
Hi Bill,
all that should be needed after building and installing the Boost libraries is
to include the path where they are installed in the CMAKE_PREFIX_PATH
CMake knows there the boost libraries are. For instance:
-- Building wsjtx v2.3.0.0-rc2
-- Found Boost 1.70.0 at /usr/local/lib/cmake/Boost-1.70.0
-- Requested configuration: QUIET REQUIRED COMPONENTS log_setup;log
-- Found boost_headers 1.70.0 at /usr/local/lib/cmake/boost_headers-1.70.0
-- Found boost_log_setup 1.70.0 at /usr/local/lib/cmake/boost_log_setup-1.70.0
-- libboost_log_setup.a
-- Adding boost_log_setup dependencies:
atomic;chrono;date_time;filesystem;log;regex;thread;headers
-- Found boost_atomic 1.70.0 at /usr/local/lib/cmake/boost_atomic-1.70.0
-- libboost_atomic.a
…
-- Found boost_thread 1.70.0 at /usr/local/lib/cmake/boost_thread-1.70.0
-- libboost_thread.a
-- Adding boost_thread dependencies: headers
It has found what it seems to need. The problem about linking remains:
Undefined symbols for architecture x86_64:
"boost::log::v2_mt_posix::attributes::timer::timer()", referenced from:
Logger::(anonymous
namespace)::CommonInitialization::CommonInitialization() in
libwsjt_cxx.a(Logger.cpp.o)
and many more similarly.
/usr/local/lib has:
file libboost*.dylib
libboost_atomic.dylib: Mach-O 64-bit dynamically linked shared
library x86_64
libboost_chrono.dylib: Mach-O 64-bit dynamically linked shared
library x86_64
libboost_container.dylib: Mach-O 64-bit dynamically linked shared
library x86_64
What symbols are not defined in the dylibs…?
— John G4KLA
Hi John,
the symbols that are not being resolved should be in the
libboost_log.dylib and possibly the libboost_log_setup.dylib. Sorry I
can't check on my system at the moment as I half way through a Big Sur
update with not enough spare disk space :( Your configure seems to be
finding static Boost libraries but the link is looking for dynamic
library symbols in static object libraries. The link is supposed to be
using dynamic Boost libraries.
How did you build and install he Boost C++ libraries?
73
Bill
G4WJS.
_______________________________________________
wsjt-devel mailing list
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel