Loader error with OTB 7.1
I compiled the apps, but I'm not able to launch them:
../install/bin/otbcli_MultitempFilteringOutcore ../install/lib
2020-09-03 17:32:30 (WARNING): Failed to load libraries from ~/s1tilingsupportapplications/install/lib/otbapp_MultitempFilteringOutcore.so while trying to create application MultitempFilteringOutcore
because: -> ~/s1tilingsupportapplications/install/lib/otbapp_MultitempFilteringOutcore.so: undefined symbol: _ZN3itk13ProcessObject8SetInputERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS_10DataObjectE
ERROR: Could not find application "MultitempFilteringOutcore"
ERROR: Module search path: ~/s1tilingsupportapplications/install/lib:~/Downloads/OTB-7.1.0-Linux64/lib/otb/applications:~/Downloads/OTB-7.1.0-Linux64/lib/otb/applications
2020-09-03 17:32:30 (WARNING): Failed to load libraries from ~/s1tilingsupportapplications/install/lib/otbapp_MultitempFilteringFilter.so while trying to create application MultitempFilteringFilter
because: -> ~/s1tilingsupportapplications/install/lib/otbapp_MultitempFilteringFilter.so: undefined symbol: _ZN3itk13ProcessObject8SetInputERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS_10DataObjectE
2020-09-03 17:32:30 (WARNING): Failed to load libraries from ~/s1tilingsupportapplications/install/lib/otbapp_MultitempFilteringOutcore.so while trying to create application MultitempFilteringOutcore
because: -> ~/s1tilingsupportapplications/install/lib/otbapp_MultitempFilteringOutcore.so: undefined symbol: _ZN3itk13ProcessObject8SetInputERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS_10DataObjectE
The missing symbol is itk::ProcessObject::SetInput(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, itk::DataObject*)
.
Tested on Arch Linux (GCC 10.2 with a patched vcl_compiler.h
) and Ubuntu 18.04.4 with GCC 7.5.
The ITK in OTB 7.1 has _ZN3itk13ProcessObject8SetInputERKSsPNS_10DataObjectE
, which demangles to itk::ProcessObject::SetInput(std::string const&, itk::DataObject*)
. Could be a GCC ABI issue.
Edited by Laurențiu Nicola