【问题标题】:Error while compiling Web RTC for Android为 Android 编译 Web RTC 时出错
【发布时间】:2017-03-03 20:51:08
【问题描述】:

我正在开发 Web RTC 视频聊天应用。

我正在浏览 Web RTC 的documentation

我已按照获取代码

中提到的所有步骤进行操作
export GYP_DEFINES="OS=android"

fetch --nohooks webrtc_android

gclient sync

我的根目录中有 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",
    ^------------------

我该如何解决这个问题?我在 Web RTC 上开发视频聊天应用的方向正确吗?

【问题讨论】:

    标签: android terminal command webrtc videochat


    【解决方案1】:

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

    【讨论】:

    • 我使用的是 Mac OSx。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-02-28
    • 1970-01-01
    • 1970-01-01
    • 2015-11-26
    • 1970-01-01
    • 2011-12-28
    • 1970-01-01
    相关资源
    最近更新 更多