我试图为armv7架构(AllWinner A20)交叉编译WebRTC。在www.webrtc.org上没有说明如何做到这一点,仅针对Android和IOS,在互联网上我发现了一些帖子怎么做,就是这样:
https://foxdogstudios.com/webrtc-on-linux
https://groups.google.com/forum/#!topic/discuss-webrtc/yzuk8wATMU8
https://github.com/mpromonet/webrtc-streamer/wiki/Cross-compile-WebRTC-for-Raspberry-Pi
所有这些都是在2年前写的,并以命令开始:
gclient config http://webrtc.googlecode.com/svn/trunk
据我所知,它是旧的存储库名称,并且构建系统在过去的两年中也发生了变化。任何人都可以帮我完成如何为ARM构建WebTRC的完整说明吗?
答案 0 :(得分:2)
不是为ARM平台交叉编译WebRTC的最佳解决方案:
安装depot工具和......
mkdir -p web_rtc && cd web_rtc
export GYP_DEFINES="OS=linux"
fetch --nohooks webrtc
gclient sync
cd src
./build/linux/sysroot_scripts/install-sysroot.py --arch=arm
gn gen out/Default --args='target_os="linux" target_cpu="arm"'
## UGLY HACK.
mv webrtc/modules/rtp_rtcp/test/testFec/test_packet_masks_metrics.cc webrtc/modules/rtp_rtcp/test/testFec/test_packet_masks_metrics.cc.bak
touch webrtc/modules/rtp_rtcp/test/testFec/test_packet_masks_metrics.cc
ninja -C out/Default
答案 1 :(得分:0)
explosion_2 = pygame.transform.scale(screen, (265, 265))
explosion_2 = pygame.transform.scale(explosion, (265, 265))
$ conda create -n yourenvname python=2.7
$ mkdir webrtc
$ cd webrtc
$ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git --depth 1
$ export PATH=$PATH:/home/ME/webrtc/depot_tools/
$ fetch --nohooks webrtc
$ cd src
$ git clean -f
$ git ls-remote https://chromium.googlesource.com/external/webrtc --heads branch-heads/72 80865776cf8a1a811166ee005951b7f5b01deacd refs/branch-heads/72
$ gclient sync --force --revision 80865776cf8a1a811166ee005951b7f5b01deacd
$ ./install-build-deps.sh
$ gclient runhooks
$ gn gen out/x64_72 --args='is_debug=true rtc_include_tests=false treat_warnings_as_errors=false use_rtti=true is_component_build=false enable_iterator_debugging=false is_clang=false use_sysroot=false linux_use_bundled_binutils=false use_custom_libcxx=false use_custom_libcxx_for_host=false target_os="linux" target_cpu="x64"'
$ cd ./out/x64_72
$ ninja -C . -j 8
$ python build/linux/sysroot_scripts/install-sysroot.py --arch=arm64
$ gn gen out/arm64_72 --args='is_debug=false enable_iterator_debugging=false treat_warnings_as_errors=false rtc_include_tests=false target_os="linux" target_cpu="arm64" is_clang=true '