Error while compiling Web RTC for Android
Asked Answered
M

1

6

I am developing app of video chat in Web RTC.

I am going through documentation of Web RTC.

I have followed all steps mentioned for Getting the Code

export GYP_DEFINES="OS=android"

fetch --nohooks webrtc_android

gclient sync

I have all src code of web rtc in my root directory. As per documentation say we have to compile source to use in our application. Here i got error while compiling source using following command.

$ gn gen out/Default --args='target_os="android" target_cpu="arm"'



  ERROR at //build/config/android/internal_rules.gni:636:3: Can't load input file.
  import("//third_party/ijar/ijar.gni")
  ^-----------------------------------
Unable to load:
  /Users/c86/webrtc-checkout/src/third_party/ijar/ijar.gni
I also checked in the secondary tree for:
  /Users/c86/webrtc-checkout/src/build/secondary/third_party/ijar/ijar.gni
See //build/config/android/rules.gni:8:1: whence it was imported.
import("//build/config/android/internal_rules.gni")
^-------------------------------------------------
See //webrtc/examples/BUILD.gn:12:3: whence it was imported.
  import("//build/config/android/rules.gni")
  ^----------------------------------------
See //BUILD.gn:13:5: which caused the file to be included.
    "//webrtc/examples",
    ^------------------

How can I solve this? Am I going in right direction to develop app of video chat on Web RTC?

Mancy answered 21/10, 2016 at 13:49 Comment(0)
H
2

Building WebRTC for Android is only supported on Ubuntu(14 / 16). Currently not supported in macOS.

Hydric answered 27/10, 2016 at 10:45 Comment(1)
i'm using Mac OSx.Mancy

© 2022 - 2024 — McMap. All rights reserved.