【问题标题】:WebRTC : gclient runhooks not workingWebRTC:gclient runhooks 不工作
【发布时间】:2015-06-01 13:11:02
【问题描述】:

我在 UBUNTU 13.10 环境中为 Android 构建 WebRTC 所遵循的步骤。

查看代码:

gclient config https://webrtc.googlecode.com/svn/trunk
echo "target_os = ['android', 'unix']" >> .gclient
gclient sync --nohooks
cd trunk
source ./build/android/envsetup.sh
export GYP_DEFINES="build_with_libjingle=1 build_with_chromium=0 libjingle_java=1 OS=android $GYP_DEFINES"
gclient runhooks

我收到此错误:

gyp: /home/joss/Desarrollo/Glass/GDK/librerias/webrtc/trunk/third_party/boringssl/boringssl.gyp not found (cwd: /home/joss/Desarrollo/Glass/GDK/librerias/webrtc)
Error: Command /usr/bin/python trunk/webrtc/build/gyp_webrtc -Dextra_gyp_flag=0 returned non-zero exit status 1 in /home/joss/Desarrollo/Glass/GDK/librerias/webrtc

如果我从GYP_DEFINES 中删除"OS=android",则“gclient runhooks”命令有效,但如果我尝试在 ninja build 后使用生成的库"libjingle_peerconnection_so.so",我会在 Android 中收到以下错误:

dlopen("/data/app-lib/com.mundoglass.glassrtc-1/libjingle_peerconnection_so.so") failed: dlopen failed: "/data/app-lib/com.mundoglass.glassrtc-1/libjingle_peerconnection_so.so" not 32-bit: 2

如果我做错了什么,请告诉我。我不确定是否必须使用 "OS=android" 来生成 Android 库。

【问题讨论】:

    标签: android webrtc boringssl


    【解决方案1】:

    我不认为你做错了什么。

    here 提到了你的错误,我想它会被修复。

    "Yes, chrome has moved to BoringSSL from OpenSSL, which causes some problems in WebRTC Android. We are looking into it."
    

    您可以尝试旧版本,我按照here 的建议尝试了版本 r6783,效果很好

    【讨论】:

      【解决方案2】:

      关注这个example,我已经尝试过并且完全成功。

      只需进行一项更改,此示例中为 gclient config 命令提供的链接是较旧的链接。按照您的链接 gclient config http://webrtc.googlecode.com/svn/trunk

      还要确保您有 oracle jdk-6,其他版本在按照步骤获取本机代码时会产生问题
      祝你好运。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2015-05-20
        • 2014-11-22
        • 2021-01-10
        • 1970-01-01
        • 2019-01-19
        • 1970-01-01
        • 2018-12-22
        • 2016-04-19
        相关资源
        最近更新 更多