[pjsip] Android, compile with ffmpeg

Giacomo Furlan giacomo.furlan at be-ssd.com
Thu Oct 15 11:03:16 EDT 2015


Hello to everyone!

I've tried compiling pjsip for Android following the guide on the website.
I've compiled also ffmpeg, and generated the Android project. Both the
project have been built for armeabi-v7a, thus I renamed the libs/armeabi to
libs/armeabi-v7a and copied all the ffmpeg's .so library files in the same
folder.

Now Pjsua2 crashes at startup with the following error:

E/AndroidRuntime( 2247): FATAL EXCEPTION: main
E/AndroidRuntime( 2247): java.lang.ExceptionInInitializerError
E/AndroidRuntime( 2247):     at
org.pjsip.pjsua2.app.MainActivity.onCreate(MainActivity.java:92)
E/AndroidRuntime( 2247):     at
android.app.Activity.performCreate(Activity.java:5008)
E/AndroidRuntime( 2247):     at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
E/AndroidRuntime( 2247):     at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
E/AndroidRuntime( 2247):     at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
E/AndroidRuntime( 2247):     at
android.app.ActivityThread.access$600(ActivityThread.java:130)
E/AndroidRuntime( 2247):     at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
E/AndroidRuntime( 2247):     at
android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 2247):     at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 2247):     at
android.app.ActivityThread.main(ActivityThread.java:4745)
E/AndroidRuntime( 2247):     at
java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 2247):     at
java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 2247):     at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
E/AndroidRuntime( 2247):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
E/AndroidRuntime( 2247):     at dalvik.system.NativeStart.main(Native
Method)
E/AndroidRuntime( 2247): Caused by: java.lang.UnsatisfiedLinkError: Cannot
load library: link_image[1891]:    90 could not load needed library
'libavformat-56.so' for 'libpjsua2.so' (load_library[1093]: Library
'libavformat-56.so' not found)
E/AndroidRuntime( 2247):     at
java.lang.Runtime.loadLibrary(Runtime.java:370)
E/AndroidRuntime( 2247):     at
java.lang.System.loadLibrary(System.java:535)
E/AndroidRuntime( 2247):     at
org.pjsip.pjsua2.app.MyApp.<clinit>(MyApp.java:292)
E/AndroidRuntime( 2247):     ... 15 more
W/ActivityManager(  266):   Force finishing activity
org.pjsip.pjsua2.app/.MainActivity

Strange thing, the library is there. I've also double checked, the file is
in the apk under the libs folder.

Any hint?

Thanks


Giacomo Furlan
Software developer
Software Solutions Designs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20151015/23e1cef6/attachment-0002.html>


More information about the pjsip mailing list