Closed olbat closed 7 years ago
Here are some ideas to solve the issue:
This topic is also discussed on Crystal's google group.
update: see https://gist.github.com/olbat/4a5d6d474efd54e14fbac317b3ae8819
there is also different so names for osx and linux, i write little binding here: https://github.com/kostya/icu/blob/master/src/icu/lib.cr, but it not solve suffixes
For some reasons 1,2,3, most distributions of ICU are compiled using the symbol renaming feature (a suffix containing the ICU version number is added to every symbols in shared objects).
It makes the task of creating a generic Crystal binding more difficult since ABIs of different versions of ICU are 100% incompatible.
For the moment the lib_icu binding has been generated against the version 52 of ICU making it incompatible with any other version of the library.