Open anikravesh opened 9 years ago
openwebrtc.jar
from openwebrtc/out/arm-linux-androideabi/jar/
to your project libraries. The needed .so files are included in the jar and loaded when Owr.init() is run.If you're using gradle, you need to make sure you add this to your config:
ndk {
abiFilter "armeabi"
}
The native example application is configured so that you should be able to import and build the project straight away, as long as openwebrtc and openwebrtc-examples are in the same folder.
Thanks, I've added the openwebrtc.jar from openwebrtc/out/arm-linux-androideabi/jar/ into my build path and I don't have any libs or armeabi folder in my Eclipse project.
Here is the error I get when I try to run the test Native app:
E/AndroidRuntime( 4237): FATAL EXCEPTION: main
E/AndroidRuntime( 4237): Process: com.example.openwebrtctest, PID: 4237
E/AndroidRuntime( 4237): java.lang.NoClassDefFoundError: com.ericsson.research.owr.Owr
E/AndroidRuntime( 4237): at com.example.openwebrtctest.MainActivity.
Could you try the same in Android Studio? The build hasn't been verified with Eclipse, since Android Studio is the official IDE.
Hello team,
First of all thanks a lot for all the hard work and time spent on this project.
Would it be possible to provide an already built openwebrtc.jar within https://github.com/EricssonResearch/openwebrtc-examples/tree/master/android/Native/app/libs? Then is upto the developer to build the entire openwebrtc framework and/or just build the standalone app.
Thanks a lot in advance,
José
Hi José,
We plan to have better handling of releases and are looking in to providing builds, but for now you will need to build the project yourself.
@stefanalund thanks for the reply, looking forward for those updates then. Please keep me posted!
Hello all,
I've managed to build openwebrtc framework for andoird via cerbero with great support from stefan. Thanks stefan!
Now I'm trying to test NativeCall app in this example project. I copied openwebrtc.jar to NativeCall and built out an apk successfuly(with Android Studio 1.0). The problem is I can not run the apk. I got following error:
02-05 02:36:03.175 1222-1222/com.ericsson.research.owr.examples.nativecall E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.ericsson.research.owr.examples.nativecall, PID: 1222
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.ericsson.research.owr.examples.nativecall-2/base.apk"],nativeLibraryDirectories=[/data/app/com.ericsson.research.owr.examples.nativecall-2/lib/arm, /vendor/lib, /system/lib]]] couldn't find "libopenwebrtc.so.3601,libgstvideo-1.0.so.0,libgstapp-1.0.so.0,libgstreamer-1.0.s.so"
at java.lang.Runtime.loadLibrary(Runtime.java:366)
at java.lang.System.loadLibrary(System.java:989)
at com.ericsson.research.owr.Owr.
From the error message, it seems that four native so libs are not found. I tried two methods:
-rwxr-xr-x system system 172184 2015-02-05 00:50 libgstapp-1.0.so.0 -rwxr-xr-x system system 3429896 2015-02-05 00:51 libgstreamer-1.0.s.so -rwxr-xr-x system system 1406424 2015-02-05 00:50 libgstvideo-1.0.so.0 -rwxr-xr-x system system 14193132 1979-12-31 09:03 libopenwebrtc.so -rwxr-xr-x system system 14193132 2015-02-05 00:50 libopenwebrtc.so.3601 -rwxr-xr-x system system 347140 1979-12-31 09:03 libopenwebrtc_jni.so
But none of the solution works, I still got the same error message.
Besides, I observed that there are two libs already included in openwebrtc.jar(libopenwebrtc.so and libopenwebrtc_jni.so).
I wonder whether this is the framework building issue(say, all the necessary libs should be in openwebrtc.jar), or it's the wrong way for me to use native libs.
Thanks in advance. Looking forward to getting your help.
@leonhust Unfortunately the cerbero build for Android is broken atm, afaik @nirbheek is looking into it, but you'll have to use the build scripts for now.
I've opened an issue about it to make it more visible: EricssonResearch/openwebrtc#161
Thanks for you information. I've tried build script before and it does not work for me at that time and I filed https://github.com/EricssonResearch/openwebrtc/issues/158. I'll retry with stefan's suggestion.
the build script still not work for me:(
Share anyone share openwebrtc.jar to me so I can start android app developing? I've struggled for framework building for over one week:( Thanks very much.
I am trying to use Android Native app. Some questions: