I've built a native library, using JNI, which resu...
# multiplatform
t
I've built a native library, using JNI, which resulted in a
mylib.a
. Now, I'd like to include that library in a KMP jvm desktop application. I know I need to call
System.loadLibrary("myLib")
, but what I'm not sure about, is where the
mylib.a
file needs to reside. Does it need to be extracted into
.so
files first? How can I make the static native lib available to java?
e
depending on the platform and how it was built, it may not be possible to wrap a static library into a dynamic library
t
Oh, should I be trying to generate a dynamic library instead?
e
if you have the source, absolutely yes
t
Thanks. Using a dll instead seems to do the trick