Link issue with dynamic libraries

Hi,
Someone has (quite) recently reported on the RTK mailing list that RTK does not compile with ITK on the latest 4.13.1 release when shared libraries are used. I can reproduce the problem (with 4.12, 4.13 and 4.13.1) (see dashboard) but I have no idea how to fix it. The error occurs on linux and macos, but not on Windows and not with the master HEAD. I have checked and the linking command lines look similar between ITK v4.13.1 and ITK master and the RTK library seems to contain all the required symbols when checking with nm. Would someone have a suggestion on how to find a solution for this problem? I really don’t know what to try at this stage…
Thanks in advance,
Simon

Hi Simon,

Since ITK is being developed as an ITK External Module :+1: :star2:, it can use the ITK external module infrastructure for providing shared libraries. This topic:

Uses RTK_EXPORT, defined for macOS / Linux / Windows.

HTH,
Matt

1 Like