pristineio / webrtc-build-scripts

A set of build scripts useful for building WebRTC libraries for Android and iOS.
BSD 3-Clause "New" or "Revised" License
1.13k stars 447 forks source link

Build AppRTCDemo #56

Closed gitbase closed 9 years ago

gitbase commented 9 years ago

Hi,

I was able to follow the instructions from README.md and then I generated some so and jar files. But I've seen this - http://andrii.sergiienko.me/?go=all/building-webrtc-demo-for-android/ - and I think it shows us how to build an AppRTCDemo that works with http://apprtc.appspot.com/ I think.

So how can I build the same demo ? In that article it uses some ninja command. Any help would be useful!

Regards

smithaaron commented 9 years ago

I just created a project using the code from https://code.google.com/p/webrtc/source/browse/#svn%2Ftrunk%2Ftalk%2Fexamples%2Fandroid and dropped in the jar and so files that I'd built.

ArikYa commented 9 years ago

Running the script with build_apprtc builds the libraries and the Android demo application.

gitbase commented 9 years ago

@smithaaron ok

@ArikYa libraries are built but where is the Android demo application ? These are the build paths/lists of files:

$ pwd
/home/gitbase/webrtc-build-scripts/android/webrtc
$ ls
libjingle_peerconnection_builds  src
$ ls libjingle_peerconnection_builds/Release/
8148.zip  jniLibs/  libs/     res/      
$ ls libjingle_peerconnection_builds/Release/jniLibs/
armeabi_v7a  x86  x86_64
$ ls libjingle_peerconnection_builds/Release/libs/
libjingle_peerconnection.jar
$ ls libjingle_peerconnection_builds/Release/res/
ArikYa commented 9 years ago

look for an .apk file in "src/out_android_armeabi_v7a/Release"

gitbase commented 9 years ago

@ArikYa ah got it thanks! As for the source, is it also there somewhere or I have to clone from the google code URL pointed by @smithaaron ?

ArikYa commented 9 years ago

it's there under "src/talk/examples/android

gitbase commented 9 years ago

Thanks @ArikYa