Can't build WebRTC on Mac

831 views
Skip to first unread message

김기덕

unread,
Oct 17, 2018, 2:27:31 AM10/17/18
to discuss-webrtc
hi, i'm trying to build WebRTC for using android.
so i tried to on MacOS, and download full source. (typing fetch --nohooks webrtc_android & gclient sync)
but i can't compile using 'ninja -C out/Debug'.

it is my three way option
1. gn gen out/Debug --args='target_os="android" target_cpu="arm"'
-> ../../third_party/android_ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/libgcc.a', needed by 'obj/modules/audio_coding/libana_config_proto.a', missing and no known rule to make it
2. gn gen out/Debug --args='target_os="android" target_cpu="x86"'
-> ../../third_party/android_ndk/toolchains/x86-4.9/prebuilt/darwin-x86_64/lib/gcc/i686-linux-android/4.9.x/libgcc.a', needed by 'obj/modules/audio_coding/libana_config_proto.a', missing and no known rule to make it
3. gn gen out/Debug --args='target_os="android" target_cpu="x64"'
-> ../../third_party/android_ndk/toolchains/x86_64-4.9/prebuilt/darwin-x86_64/lib/gcc/x86_64-linux-android/4.9.x/libgcc.a', needed by 'obj/modules/audio_coding/libana_config_proto.a', missing and no known rule to make it

how do i build webrtc_android? plz help me.

김기덕

unread,
Oct 17, 2018, 3:44:31 AM10/17/18
to discuss-webrtc

Angelo Mantellini

unread,
Oct 17, 2018, 4:29:37 AM10/17/18
to discuss...@googlegroups.com

If I remember well, you need ubuntu tu compile chromium/webrtc for android.

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/3a6a2b13-541e-4dd8-8706-d795dea8bcb8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

김기덕

unread,
Oct 17, 2018, 8:41:55 PM10/17/18
to discuss-webrtc
I don't know if this is true , on MAC os ,  depot_tools = chromium . don't you? i'm install using 'fetch --nohooks webrtc_android' and success download. just can't compiling.

Alexandre GOUAILLARD

unread,
Oct 18, 2018, 2:05:30 AM10/18/18
to discuss...@googlegroups.com
it is true.


"Android development is only supported on Linux."



On Thu, Oct 18, 2018 at 8:41 AM 김기덕 <kkd9...@gmail.com> wrote:
I don't know if this is true , on MAC os ,  depot_tools = chromium . don't you? i'm install using 'fetch --nohooks webrtc_android' and success download. just can't compiling.

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Alex. Gouaillard, PhD, PhD, MBA
------------------------------------------------------------------------------------
President - CoSMo Software Consulting, Singapore
------------------------------------------------------------------------------------

김기덕

unread,
Oct 18, 2018, 3:37:16 AM10/18/18
to discuss-webrtc
okay. so another OS can't build webrtc?? like mac or windows

2018년 10월 18일 목요일 오후 3시 5분 30초 UTC+9, Alexandre GOUAILLARD 님의 말:

Quyen Le

unread,
Oct 18, 2018, 3:42:23 AM10/18/18
to discuss-webrtc
Yeah, I tried in the past and noticed only linux is supported to build android version. You have to use VM if Mac is your machine. Docker is the most convenient VM solution for me in this case since it can reuse the host machine's disk partition with minimal performance hit. Be careful though webrtc-android expects the partition to be case sensitive which is not the default option of Mac partition.

Alexandre GOUAILLARD

unread,
Oct 18, 2018, 4:12:38 AM10/18/18
to discuss...@googlegroups.com
Answer to what you wrote:
- OS can't build anything.
- you can build webrtc on mac and windows.

Answer to what I assume you meant:
- building webrtc for android is only supported by the webrtc authors on linux.
  -- that means that if you experience problem building webrtc for android on linux, you can ask for help, open a ticket and expect an answer.
  -- that also mean that if you want to build webrtc for android on any other OS, you are on your own, and no support should be expected.
- when it comes to software, nothing is impossible. The impossible just takes a little bit longer.

Note that there are multiple scripts out there to build libwebrtc on linux as docker, as travisCL, and so on and so forth, as well as official pre-build artefacts: e.g. https://github.com/threema-ch/webrtc-build-docker

HTH


For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages