Error using the compiled vlclib

This forum is about all development around libVLC.
ssaguiar
Blank Cone
Blank Cone
Posts: 28
Joined: 06 May 2009 22:35

Error using the compiled vlclib

Postby ssaguiar » 21 Dec 2015 13:43

I have compiled the vlc library, following the instructions here:
https://wiki.videolan.org/AndroidCompil ... nux_64-bit

I try to use the compiled version in the demo app (https://github.com/wass08/VLC-Simple-Player-Android), but it gives me allways error when I try to play a m3u8 stream.
If I use the compiled version of the lib wich is included in the example project, all is ok, it works without errors.
I already compiled the libs several times, but the error is allways present.

Can anybody give me a clue on what is going on?

Thanks.

The log is:

12-21 10:35:10.025 24542-24542/? D/dalvikvm: Late-enabling CheckJNI
12-21 10:35:11.550 24542-24542/com.wass08.vlcsimpleplayer D/libEGL: loaded /system/lib/egl/libEGL_mali.so
12-21 10:35:11.560 24542-24542/com.wass08.vlcsimpleplayer D/libEGL: loaded /system/lib/egl/libGLESv1_CM_mali.so
12-21 10:35:11.560 24542-24542/com.wass08.vlcsimpleplayer D/libEGL: loaded /system/lib/egl/libGLESv2_mali.so
12-21 10:35:11.665 24542-24542/com.wass08.vlcsimpleplayer D/OpenGLRenderer: Enabling debug mode 0
12-21 10:35:17.740 24542-24542/com.wass08.vlcsimpleplayer D/ProgressBar: setProgressDrawable mProgressDrawable = null, d = android.graphics.drawable.LayerDrawable@42540858needUpdate = false
12-21 10:35:17.740 24542-24542/com.wass08.vlcsimpleplayer D/ProgressBar: setProgressDrawable drawableHeight = 24
12-21 10:35:17.745 24542-24542/com.wass08.vlcsimpleplayer D/ProgressBar: setProgress = 0
12-21 10:35:17.745 24542-24542/com.wass08.vlcsimpleplayer D/ProgressBar: setProgress = 0, fromUser = false
12-21 10:35:17.745 24542-24542/com.wass08.vlcsimpleplayer D/ProgressBar: mProgress = 0mIndeterminate = false, mMin = 0, mMax = 100
12-21 10:35:17.760 24542-24542/com.wass08.vlcsimpleplayer D/AbsSeekBar: AbsSeekBar Constructor: misSeebarAnimationAvailable = false
12-21 10:35:17.775 24542-24542/com.wass08.vlcsimpleplayer D/dalvikvm: Trying to load lib /data/app-lib/com.wass08.vlcsimpleplayer-2/libiomx-ics.so 0x424cd390
12-21 10:35:17.790 24542-24542/com.wass08.vlcsimpleplayer D/dalvikvm: Added shared lib /data/app-lib/com.wass08.vlcsimpleplayer-2/libiomx-ics.so 0x424cd390
12-21 10:35:17.790 24542-24542/com.wass08.vlcsimpleplayer D/dalvikvm: No JNI_OnLoad found in /data/app-lib/com.wass08.vlcsimpleplayer-2/libiomx-ics.so 0x424cd390, skipping init
12-21 10:35:17.790 24542-24542/com.wass08.vlcsimpleplayer D/dalvikvm: Trying to load lib /data/app-lib/com.wass08.vlcsimpleplayer-2/libvlcjni.so 0x424cd390
12-21 10:35:17.910 24542-24542/com.wass08.vlcsimpleplayer D/dalvikvm: Added shared lib /data/app-lib/com.wass08.vlcsimpleplayer-2/libvlcjni.so 0x424cd390
12-21 10:35:17.915 24542-24542/com.wass08.vlcsimpleplayer E/VLC/JNI/VLCObject: FindClass(org/videolan/libvlc/VLCObject) failed
12-21 10:35:17.915 24542-24542/com.wass08.vlcsimpleplayer W/dalvikvm: JNI_OnLoad returned bad version (-1) in /data/app-lib/com.wass08.vlcsimpleplayer-2/libvlcjni.so 0x424cd390
12-21 10:35:17.915 24542-24542/com.wass08.vlcsimpleplayer W/dalvikvm: Exception Ljava/lang/NoClassDefFoundError; thrown while initializing Lorg/videolan/libvlc/LibVLC;
12-21 10:35:17.915 24542-24542/com.wass08.vlcsimpleplayer D/AndroidRuntime: Shutting down VM
12-21 10:35:17.915 24542-24542/com.wass08.vlcsimpleplayer W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x41a7b730)
12-21 10:35:17.925 24542-24542/com.wass08.vlcsimpleplayer E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.NoClassDefFoundError: org/videolan/libvlc/VLCObject
at java.lang.Runtime.nativeLoad(Native Method)
at java.lang.Runtime.doLoad(Runtime.java:432)
at java.lang.Runtime.loadLibrary(Runtime.java:360)
at java.lang.System.loadLibrary(System.java:525)
at org.videolan.libvlc.LibVLC.<clinit>(LibVLC.java:109)
at com.wass08.vlcsimpleplayer.FullscreenVlcPlayer.createPlayer(FullscreenVlcPlayer.java:330)
at com.wass08.vlcsimpleplayer.FullscreenVlcPlayer.playMovie(FullscreenVlcPlayer.java:201)
at com.wass08.vlcsimpleplayer.FullscreenVlcPlayer.onCreate(FullscreenVlcPlayer.java:105)
at android.app.Activity.performCreate(Activity.java:5372)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1104)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2257)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2349)
at android.app.ActivityThread.access$700(ActivityThread.java:159)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1316)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:176)
at android.app.ActivityThread.main(ActivityThread.java:5419)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1046)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:862)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: Didn't find class "org.videolan.libvlc.VLCObject" on path: /data/app/com.wass08.vlcsimpleplayer-2.apk
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:64)
at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
at java.lang.Runtime.nativeLoad(Native Method) 
at java.lang.Runtime.doLoad(Runtime.java:432) 
at java.lang.Runtime.loadLibrary(Runtime.java:360) 
at java.lang.System.loadLibrary(System.java:525) 
at org.videolan.libvlc.LibVLC.<clinit>(LibVLC.java:109) 
at com.wass08.vlcsimpleplayer.FullscreenVlcPlayer.createPlayer(FullscreenVlcPlayer.java:330) 
at com.wass08.vlcsimpleplayer.FullscreenVlcPlayer.playMovie(FullscreenVlcPlayer.java:201) 
at com.wass08.vlcsimpleplayer.FullscreenVlcPlayer.onCreate(FullscreenVlcPlayer.java:105) 
at android.app.Activity.performCreate(Activity.java:5372) 
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1104) 
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2257) 
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2349) 
at android.app.ActivityThread.access$700(ActivityThread.java:159) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1316) 
at android.os.Handler.dispatchMessage(Handler.java:99) 
at android.os.Looper.loop(Looper.java:176) 
at android.app.ActivityThread.main(ActivityThread.java:5419) 
at java.lang.reflect.Method.invokeNative(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:525) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1046) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:862) 
at dalvik.system.NativeStart.main(Native Method) 

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Error using the compiled vlclib

Postby Jean-Baptiste Kempf » 28 Jun 2016 09:33

This is not the demo app.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 7 guests