native library managment and gradle

The engine.
Post Reply
giliandrea92
Posts: 3
Joined: Sat Aug 29, 2020 6:01 am

native library managment and gradle

Post by giliandrea92 »

Hello,

I put my libjsmile.so inside a folder "libs" in the root directory of my gradle project together with jsmile.jar. I'm now working on eclipse. i got no problem if i set the build path correctly so that the project and external dependencies native library is set to project/libs using eclipse GUI.

However everytime i build the gradle project i loose the linking and i get the following error:
"Exception in thread "main" java.lang.UnsatisfiedLinkError: no libjsmile.so in java.library.path"

How can i set automatically the native library location ?

Thanks,
Andrea.
shooltz[BayesFusion]
Site Admin
Posts: 1417
Joined: Mon Nov 26, 2007 5:51 pm

Re: native library managment and gradle

Post by shooltz[BayesFusion] »

We don't have any experience with Gradle; please read the discussion linked below.

https://discuss.gradle.org/t/how-to-add ... sting/6501

Also note that you can use jsmile.native.library JVM property to specify the full path to libjsmile.so (see https://support.bayesfusion.com/docs/Wrappers/java.html for more info)
Post Reply