【发布时间】: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