I have a C++ library to listen to radio with RF24. I wrap this library using JNI with a Java class.
The issue that I have is that gradle don\'t link the shared library
Use the following instead:
cpp.lib library: 'rf24', linkage: 'shared'
This induces a transitive dependency from libtransmission
to librf24
.
It is not enough to put the files side by side to be found, however. You should either set LD_LIBRARY_PATH
at runtime or compile libtransmission
with a relative RPATH
.