Supported to compile webRTC for Android on a Mac?

1,284 views
Skip to first unread message

Bradley Rubin

unread,
Feb 21, 2017, 12:27:55 PM2/21/17
to discuss-webrtc
Hello,

I'm trying to compile the webrtc code for Android on my Mac because I don't have a Linux machine handy. Is this supported?

Here's an error I hit when running install-build-deps.sh

Bradleys-MacBook-Pro:src brad$ ./build/install-build-deps.sh

ERROR: lsb_release not found in $PATH


Here's another error I'm hitting a readlink error when running envsetup.sh

Bradleys-MacBook-Pro:src brad$ . build/android/envsetup.sh 

readlink: illegal option -- f

usage: readlink [-n] [file ...]

Warning: Current directory is out of CHROME_SRC, it may not be   the one you want.


Looks like both lsb_release and readlink aren't supported on Macs. Is there another build script that could work for compiling the Android code on Macs? The plan is to take the compiled library and then copy it to my Windows development machine, where I'll add it into my Android build.


I guess another option is to spin up an EC2 Linux Server, compile WebRTC into a library, and copy it to my dev machine. Before I try that, wanted to see if there's a way to make this work with my Mac.


Thanks,

Brad

mbon...@webrtc.org

unread,
Feb 22, 2017, 3:37:31 AM2/22/17
to discuss-webrtc
Hi Bradley,

WebRTC android development is not supported on mac [1] (first line of "Getting the code").

yongje...@gmail.com

unread,
Feb 23, 2017, 2:32:11 AM2/23/17
to discuss-webrtc
Hi Bradley,

I'm using Macs to build a shared library(libjingle_peerconnection_so.so) for Android even though it's not officially supported.

instead of running envsetup, I installed some toolchains via brew and copied Mac ndk in proper places then it works.

David Thomas

unread,
Feb 23, 2017, 7:01:46 AM2/23/17
to discuss-webrtc
There's always the option to use Virtualbox or something similar to make an Ubuntu 14.04 virtual machine and build using that on your Mac. I've done that myself and it works well.

--------------------

Note: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer.  Thank you.  CafeX Communications.


Antonis Tsakiridis

unread,
Feb 23, 2017, 1:10:45 PM2/23/17
to discuss-webrtc
Bradley, 

Maybe this Restcomm Android SDK wiki page will help you. It describes how to build latest webrtc on a Mac by using vagrant. Has proven pretty handy for us.

Best regards,
Antonis
Reply all
Reply to author
Forward
0 new messages