Book Image

WebRTC Cookbook

By : Andrii Sergiienko
Book Image

WebRTC Cookbook

By: Andrii Sergiienko

Overview of this book

Table of Contents (15 chapters)
WebRTC Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Compiling and running a demo for Android


Here, you will learn how to build a native demo WebRTC application for Android. Unfortunately, the supplied demo application from Google doesn't contain any IDE-specific project files, so you will have to deal with console scripts and commands during all the building process.

Getting ready

We will need to check whether we have all the necessary libraries and packages installed on the work machine. For this recipe, I used a Linux box—Ubuntu 14.04.1 x64. So all the commands that might be specific for OS will be relevant to Ubuntu. Nevertheless, using Linux is not mandatory and you can take Windows or Mac OS X.

Tip

If you're using Linux, it should be 64-bit based. Otherwise, you most likely won't be able to compile Android code.

Preparing the system

First of all, you need to install the necessary system packages:

sudo apt-get install git git-svn subversion g++ pkg-config gtk+-2.0 libnss3-dev libudev-dev ant gcc-multilib lib32z1 lib32stdc++6

Installing Oracle...