E
E
Evgeny Petryaev2020-10-01 19:35:09
Android
Evgeny Petryaev, 2020-10-01 19:35:09

App launch and error?

I printed the application in Android studio using the external jogl library, launched it. On Android, the app crashes with an error libgluegen-rt.so not found. The application is written in Java. I was looking for a solution, I found that it was necessary to put the sling in src/main/jniLib/libgluegen-rt.soit did not help, apparently few people reached this step. Does anyone have experience with this library experience or any other, also external, I think it will be similar. There are no examples on the jogamp site, only a description of the methods. Poor documentation what to say.
Error code

Listing an exception
java.lang.UnsatisfiedLinkError: dlopen failed: library «//natives/android-armv6//libgluegen-rt.so» not found at java.lang.Runtime.load0(Runtime.java:938) at java.lang.System.load(System.java:1631) at com.jogamp.common.jvm.JNILibLoaderBase.loadLibraryInternal(JNILibLoaderBase.java:624) at com.jogamp.common.jvm.JNILibLoaderBase.access$000(JNILibLoaderBase.java:63) at com.jogamp.common.jvm.JNILibLoaderBase$DefaultAction.loadLibrary(JNILibLoaderBase.java:106) at com.jogamp.common.jvm.JNILibLoaderBase.loadLibrary(JNILibLoaderBase.java:487) at com.jogamp.common.os.DynamicLibraryBundle$GlueJNILibLoader.loadLibrary(DynamicLibraryBundle.java:421) at com.jogamp.common.os.Platform$1.run(Platform.java:317) at java.security.AccessController.doPrivileged(AccessController.java:43) at com.jogamp.common.os.Platform.(Platform.java:287) at com.jogamp.common.os.Platform.initSingleton(Platform.java:355) at com.jogamp.opengl.GLProfile.(GLProfile.java:147) at com.jogamp.opengl.GLProfile.get(GLProfile.java:1004) at com.example.myapplication.MainActivity.onStart(MainActivity.java:54) at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1433) at android.app.Activity.performStart(Activity.java:7923) at android.app.ActivityThread.handleStartActivity(ActivityThread.java:3328) at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:221) at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:201) at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:173) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2040) at android.os.Handler.dispatchMessage(Handler.java:107) at android.os.Looper.loop(Looper.java:221) at android.app.ActivityThread.main(ActivityThread.java:7520) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)

The libraries themselves
https://jogamp.org/deployment/jogamp-current/archive/ there are so files in the 7zip archive jogamp-all-platforms I don’t know anymore.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nick, 2020-10-02
@Gremlin92

inside jniLib, you need to shove it into additional folders in accordance with the architecture for which the lib was built, you
also need to remember to call System.loadLibrary
, an example of how it all works can be looked here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question