编译适用于Android的Web RTC时出错

Dev*_*esh 6 terminal android command videochat webrtc

我正在开发Web RTC中的视频聊天应用程序.

我正在阅读Web RTC的文档.

我已按照获取代码中提到的所有步骤进行操作

export GYP_DEFINES="OS=android"

fetch --nohooks webrtc_android

gclient sync
Run Code Online (Sandbox Code Playgroud)

我在我的根目录中有web rtc的所有src代码.根据文档说我们必须编译源代码以在我们的应用程序中使用.这里我使用以下命令编译源时出错.

$ 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",
    ^------------------
Run Code Online (Sandbox Code Playgroud)

我怎么解决这个问题?我是否正在朝着Web RTC开发视频聊天应用的方向发展?

Aja*_*jay 2

仅 Ubuntu(14 / 16) 支持为 Android 构建 WebRTC。目前 macOS 不支持。