I don’t understand, what changed? the extension works before, why I have this incompatibility now with the new build that supposed to be the same as the binary 4.8.1? I thought Cmake take care of these things. I also tested with skipping RPATH but I get the same error.
Thank Jean for the info.
I modify SuperBuild/External_ITKv4.cmake to enable make ITKV3_Compatibility. I also enabled the related module in ITKv4-build then rebuilt Slicer. After that, I rebuilt the extension but I got this error
undefined symbol: _ZN6vtksys11SystemTools24GetFilenameLastExtensionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
I checked it using:
echo “_ZN6vtksys11SystemTools24GetFilenameLastExtensionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE” | c++filt
vtksys::SystemTools::GetFilenameLastExtension(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)
It looks there are some option I need to change in VTK?