Login  Register

JOGL in Android- java.lang.UnsatisfiedLinkError

Posted by kaeffin on Jul 19, 2016; 7:40am
URL: https://forum.jogamp.org/JOGL-in-Android-java-lang-UnsatisfiedLinkError-tp4036931.html

Hello,

I want to use JOGL in a Androidstudioproject. I use the following Gradlecode to add JOGL to my project.

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.3"

    defaultConfig {
        applicationId "com.example.myapplication"
        minSdkVersion 19
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile "org.jogamp.gluegen:gluegen-rt:2.3.1"
    compile "org.jogamp.jogl:jogl-all:2.3.1"

    compile "org.jogamp.gluegen:gluegen-rt:2.3.1:natives-android-aarch64"
    compile "org.jogamp.gluegen:gluegen-rt:2.3.1:natives-android-armv6"
    compile "org.jogamp.gluegen:gluegen-rt:2.3.1:natives-linux-amd64"
    compile "org.jogamp.gluegen:gluegen-rt:2.3.1:natives-linux-armv6"
    compile "org.jogamp.gluegen:gluegen-rt:2.3.1:natives-linux-armv6hf"
    compile "org.jogamp.gluegen:gluegen-rt:2.3.1:natives-linux-i586"
    compile "org.jogamp.gluegen:gluegen-rt:2.3.1:natives-macosx-universal"
    compile"org.jogamp.gluegen:gluegen-rt:2.3.1:natives-solaris-amd64"
    compile "org.jogamp.gluegen:gluegen-rt:2.3.1:natives-solaris-i586"
    //compile "org.jogamp.gluegen:gluegen-rt:2.3.1:natives-windows-amd64"
    compile "org.jogamp.gluegen:gluegen-rt:2.3.1:natives-windows-i586"

    compile "org.jogamp.jogl:jogl-all:2.3.1:natives-android-aarch64"
    compile "org.jogamp.jogl:jogl-all:2.3.1:natives-android-armv6"
    compile "org.jogamp.jogl:jogl-all:2.3.1:natives-linux-amd64"
    compile "org.jogamp.jogl:jogl-all:2.3.1:natives-linux-armv6"
    compile "org.jogamp.jogl:jogl-all:2.3.1:natives-linux-armv6hf"
    compile "org.jogamp.jogl:jogl-all:2.3.1:natives-linux-i586"
    compile "org.jogamp.jogl:jogl-all:2.3.1:natives-macosx-universal"
    compile "org.jogamp.jogl:jogl-all:2.3.1:natives-solaris-amd64"
    compile "org.jogamp.jogl:jogl-all:2.3.1:natives-solaris-i586"
    //compile "org.jogamp.jogl:jogl-all:2.3.1:natives-windows-amd64"
    compile "org.jogamp.jogl:jogl-all:2.3.1:natives-windows-i586"
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.4.0'
}

But when i want to run the app:


FATAL EXCEPTION: main
                                                                                    Process: com.example.praktikant.myapplication, PID: 2408
                                                                                    java.lang.UnsatisfiedLinkError: dlopen failed: library "//libgluegen-rt.so" not found
                                                                                        at java.lang.Runtime.load(Runtime.java:332)
                                                                                        at java.lang.System.load(System.java:1069)
                                                                                        at com.jogamp.common.jvm.JNILibLoaderBase.loadLibraryInternal(JNILibLoaderBase.java:596)
                                                                                        at com.jogamp.common.jvm.JNILibLoaderBase.access$000(JNILibLoaderBase.java:63)
                                                                                        at com.jogamp.common.jvm.JNILibLoaderBase$DefaultAction.loadLibrary(JNILibLoaderBase.java:95)
                                                                                        at com.jogamp.common.jvm.JNILibLoaderBase.loadLibrary(JNILibLoaderBase.java:459)
                                                                                        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:45)
                                                                                        at com.jogamp.common.os.Platform.<clinit>(Platform.java:287)
                                                                                        at com.jogamp.common.os.Platform.initSingleton(Platform.java:355)
                                                                                        at com.jogamp.opengl.GLProfile.<clinit>(GLProfile.java:146)


Does anyone have an approach what might be the cause?