j0r1 / JRTPLIB

RTP Library
MIT License
581 stars 220 forks source link

Info about compatibility with mobile? #10

Closed lattice0 closed 6 years ago

lattice0 commented 6 years ago

I'm evaluating lots of rtp libraries and therefore can't put effort reading the entire source by now. What would need to be done to make it work on iOS and Android?

Thank you!

j0r1 commented 6 years ago

I've used it on Android, and there are instructions for cross compilation in the README. Haven't tried on iOS though, don't know what kind of issues there could arise.

lattice0 commented 6 years ago

Nice, I think that's going to work then. Is the android JNI interface possibly open source? Would economize me a lot of time (what I'm building is open source)

j0r1 commented 6 years ago

I didn't make a JNI interface for it: I used it indirectly by using emiplib, which in turn was used in a Qt based program called AudioReceiver

lattice0 commented 6 years ago

I added the cmake to my gradle. I was expecting seeing errors related to android build and versioning but I'm getting an specific error in the code. Could it be a bug in the code? https://stackoverflow.com/questions/49935883/integrating-c-lib-into-gradle-how-to-compile-to-android

(not asking for you to help e integrate the library, but if it's a bug it'd be worth to point)

I mean, there are no flags that shut these errors off, so it looks like a bug

j0r1 commented 6 years ago

The issue is that e.g. getifaddrs is not recognized; the cmake script tests for this and disables the use if not available. I have no experience combining cmake with gradle I'm afraid.

lattice0 commented 6 years ago

That's strange, it should have been disabled then. But I'm going to search about it, thanks

j0r1 commented 6 years ago

Thanks for looking into this; it's now fixed in the master branch