Dependency version issues in the binary release package #23990
What happened?Hello, $ ldd '/drake-1.48.0-jammy/drake/lib/libdrake.so'
linux-vdso.so.1 (0x00007ffcdf1e3000)
libfmt.so.8 =>
libspdlog.so.1 => I compiled and installed spdlog-1.15.3 and fmt-8.0.1 from source. However, the linking symbol issue still persists. symbol lookup error: /lib/libdrake.so: undefined symbol: _ZN6spdlog6logger12err_handler_ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEI'm unsure which version of the dependency to choose, or perhaps there shouldn't be such strict version dependencies? I don't encounter this symbol issue while building from source codes. (But I want to use Snopt ...) Thanks for your time! Version1.48.0 1b70614 What operating system are you using?Ubuntu 22.04 What installation option are you using?binary tar.gz download Relevant log output$ ldd '/drake-1.48.0-jammy/drake/lib/libdrake.so'
linux-vdso.so.1 (0x00007ffcdf1e3000)
libfmt.so.8 =>
libspdlog.so.1 =>
___
symbol lookup error: /lib/libdrake.so: undefined symbol: _ZN6spdlog6logger12err_handler_ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE |
Replies: 1 comment 1 reply
|
Sorry for the confusion! The Jammy binary package is intended to use the Jammy version of spdlog and fmt, so instead of building those from source, you should do The |
Sorry for the confusion!
The Jammy binary package is intended to use the Jammy version of spdlog and fmt, so instead of building those from source, you should do
sudo apt install libspdlog-dev.The
sudo drake/share/drake/setup/install_prereqsscript provided inside the download does this for you, as well as installing other necessary dependencies.