Anybody has successfully ported live555 to android?

喜你入骨 提交于 2019-11-29 04:11:20

问题


I've been trying to build live555 according to this guide:

https://github.com/boltonli/ohbee/tree/master/android/streamer/jni

as well as using some other guides, all to no avail.

If someone has succeeded in porting live555 to android can you, please, tell me how I can do so?


回答1:


I successfully built the project as follows:

git clone https://github.com/boltonli/ohbee.git
cd ohbee/android/streamer
android update project --path . --name "streamer" --target "android-15"
cp lib/jnix.jar libs/ # This is the only trick
ant debug

The jar was in the lib/ directory rather than libs/.

If that doesn't resolve the issue you were or are having, you'll have to be more specific and share the steps you've taken and what problems you're encountering.




回答2:


To compile Live555 streaming media for ARM/Linux try following steps:

> cd live
> ./genMakefiles armlinux
> make

Pre-built binary package:

live.2011.06.16-dev-armlinux.tar.bz2

Hope it helps !




回答3:


This answer worked for me and I was able to build the project in Android Studio:

However, at runtime, I was getting a java.lang.UnsatisfiedLinkError at the line in MainActivity.java: System.loadLibrary("jnix");

libjnix.so is missing from ohbee/android/streamer/*, but the armeabi binary is in ohbee/android/streamer2/libs/armeabi. When I copied this into my src/main/jniLibs/armeabi, I was able to run the application on Samsung Galaxy Note S3. It streams the camera into an RTPSink instance with a dummy address.

Obviously, targets which are not armeabi will not work (so virtual devices don't work), and I haven't been able to find the source for the jnix libs (only the headers).



来源:https://stackoverflow.com/questions/10821015/anybody-has-successfully-ported-live555-to-android

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!