0

I have a library file like libfoo.so.1.55.0 and would like to include it in the generated platform jar using javacpp-presset. What is the correct way to add the library to the link or linkResources fields in the @Platform annotation?

I've tried foo, foo@.1.55.0 which doesn't work. Notably, removing the version from the shared object file altogether (libfoo.so) does indeed work as expected.

Klugscheißer
  • 1,575
  • 1
  • 11
  • 24

1 Answers1

0

The version we need to specify here isn't related to the filename, but the SONAME. Check its value with readelf -d.

Samuel Audet
  • 4,964
  • 1
  • 26
  • 33