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?
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.
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 !
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