美文网首页
(掉头发系列)Ubuntu系统编译webrtc所有平台源码

(掉头发系列)Ubuntu系统编译webrtc所有平台源码

作者: XII01 | 来源:发表于2020-01-03 18:34 被阅读0次

    重点说三遍,Ubuntu,Ubuntu,Ubuntu!,用Ubuntu来编译

    编译国内镜像:https://webrtc.org.cn/mirror/

    官方镜像(谁用谁知道):https://webrtc.org/native-code/android/

    按照上面就可以很快编译出来(中途可以玩几把王者233)

    编译可指定带或不带AppRTCMobile,带AppRTCMobile生成的Debug目录较小,不带AppRTCMobile生成的文件较多,也更大。


    更小的包

    a)编译arm debug版本

    gn gen out/Debug_arm --args='target_os="android" target_cpu="arm"'
    ninja -C out/Debug_arm
    

    b)编译arm64 debug版本

    gn gen out/Debug_arm64 --args='target_os="android" target_cpu="arm64"'
    ninja -C out/Debug_arm64
    

    c)编译arm release版本

    gn gen out/Release_arm --args='target_os="android" target_cpu="arm" is_debug=false'
    ninja -C out/Release_arm
    

    d)编译arm64 release版本

    gn gen out/Release_arm64 --args='target_os="android" target_cpu="arm64" is_debug=false'
    ninja -C out/Release_arm64
    

    此处在生成的out/*名字上做区别,需要自取。

    继续入坑中...

    相关文章

      网友评论

          本文标题:(掉头发系列)Ubuntu系统编译webrtc所有平台源码

          本文链接:https://www.haomeiwen.com/subject/uthtactx.html