jianlinwei / panoramagl

Automatically exported from code.google.com/p/panoramagl
0 stars 0 forks source link

java.lang.UnsatisfiedLinkError on activity start #25

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Import PanoramaGL lib
2. use code from wiki
3. get java.lang.UnsatisfiedLinkError: Couldn't load glues from loader 
dalvik.system.PathClassLoader error when activity is started.

What is the expected output? What do you see instead?
Apps crashing

What version of the product are you using? On what operating system?
0.2beta

Please provide any additional information below.
Code:
public class PanoramaActivity extends PLView {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        PLSpherical2Panorama panorama = new PLSpherical2Panorama();
        PLSpherical2Panorama p = new PLSpherical2Panorama();
        panorama.setImage(new PLImage(PLUtils.getBitmap(this, R.raw.quito1_s2), false));
        this.setPanorama(panorama);
    }
}
-----------------------------------------------------------------------
Full error text:

Process: com.diezgames.PanoramasOfUkraine, PID: 1761
    java.lang.UnsatisfiedLinkError: Couldn't load glues from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.diezgames.PanoramasOfUkraine-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.diezgames.PanoramasOfUkraine-1, /system/lib]]]: findLibrary returned null
            at java.lang.Runtime.loadLibrary(Runtime.java:358)
            at java.lang.System.loadLibrary(System.java:526)
            at com.panoramagl.opengl.GLUES.<clinit>(GLUES.java:31)
            at com.panoramagl.PLQuadricPanoramaBase.initializeValues(PLQuadricPanoramaBase.java:43)
            at com.panoramagl.PLSphericalPanorama.initializeValues(PLSphericalPanorama.java:37)
            at com.panoramagl.PLObjectBase.<init>(PLObjectBase.java:28)
            at com.panoramagl.PLObject.<init>(PLObject.java:44)
            at com.panoramagl.PLRenderableElementBase.<init>(PLRenderableElementBase.java:27)
            at com.panoramagl.PLSceneBase.<init>(PLSceneBase.java:38)
            at com.panoramagl.PLPanoramaBase.<init>(PLPanoramaBase.java:32)
            at com.panoramagl.PLQuadricPanoramaBase.<init>(PLQuadricPanoramaBase.java:26)
            at com.panoramagl.PLSphericalPanorama.<init>(PLSphericalPanorama.java:31)
            at com.diezgames.PanoramasOfUkraine.PanoramaActivity.onCreate(PanoramaActivity.java:15)
            at android.app.Activity.performCreate(Activity.java:5231)
            at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
            at android.app.ActivityThread.access$800(ActivityThread.java:135)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
            at android.os.Handler.dispatchMessage(Handler.java:102)
            at android.os.Looper.loop(Looper.java:136)
            at android.app.ActivityThread.main(ActivityThread.java:5017)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:515)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
            at dalvik.system.NativeStart.main(Native Method)

Original issue reported on code.google.com by whistler...@gmail.com on 21 Apr 2014 at 7:34

GoogleCodeExporter commented 9 years ago
I solved this problem by adding project "PanoramaGL" as library for my app. You 
have to download source code and add to your workspace. Hope it helps: 
http://developer.android.com/tools/projects/projects-eclipse.html#SettingUpLibra
ryProject

Original comment by fighter....@gmail.com on 13 Oct 2014 at 5:25