系列文章目录
海思3518ev200学习记录(1)- 根据用户手册烧录系统镜像
海思3518ev200学习记录(2) - 交叉编译官方webRTC
海思3518ev200学习记录(3) - 编译 amazon-kinesis webrtc嵌入式实现
海思3518ev200学习记录(4) - 基于海思源码分段录制音频文件
前言
前一篇文章有根据客服提供的素材资料熟悉了一下海思3518ev200开发板,但是这不是我要的东西,还在前辈们都留下了相应的脚本在度娘身上。
为了记录错误方便这边使用了ubuntu的script录制功能。
开始
系统:ubuntu16.4开发板:haisi3518ev200
先启动记录功能,前方即将高能降临。
script script -t 2>/home/swann/Desktop/script/webRTC.time -a /home/swann/Desktop/script/webRTC.log
相应的包之类的之前文章已经准备好了,查看海思交叉编译工具链
swann@ubuntu:/opt$ arm-hisiv300-linux-gcc -v
Using built-in specs.
COLLECT_GCC=arm-hisiv300-linux-gcc
COLLECT_LTO_WRAPPER=/opt/hisi-linux/x86-arm/arm-hisiv300-linux/bin/../libexec/gcc/arm-hisiv300-linux-uclibcgnueabi/4.8.3/lto-wrapper
Target: arm-hisiv300-linux-uclibcgnueabi
Configured with: '../gcc~linaro-4.8-2013.12/configure' --host=i386-redhat-linux --build=i386-redhat-linux --target=arm-hisiv300-linux-uclibcgnueabi --prefix=/home/sying/wucaiyuan_toolchain/v300/uclibc_gcc4.8_linaro_toolchain_optimized/install/arm-hisiv300-linux --enable-threads --disable-libmudflap --disable-libssp --disable-libstdcxx-pch --with-arch=armv5te --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --enable-shared --enable-lto --enable-symvers=gnu --enable-__cxa_atexit --enable-nls --enable-clocale=gnu --enable-extra-hisi-multilibs --with-sysroot=/home/sying/wucaiyuan_toolchain/v300/uclibc_gcc4.8_linaro_toolchain_optimized/install/arm-hisiv300-linux/target --with-build-sysroot=/home/sying/wucaiyuan_toolchain/v300/uclibc_gcc4.8_linaro_toolchain_optimized/install/arm-hisiv300-linux/target --with-gmp=/home/sying/wucaiyuan_toolchain/v300/uclibc_gcc4.8_linaro_toolchain_optimized/install/host_lib --with-mpfr=/home/sying/wucaiyuan_toolchain/v300/uclibc_gcc4.8_linaro_toolchain_optimized/install/host_lib --with-mpc=/home/sying/wucaiyuan_toolchain/v300/uclibc_gcc4.8_linaro_toolchain_optimized/install/host_lib --with-ppl=/home/sying/wucaiyuan_toolchain/v300/uclibc_gcc4.8_linaro_toolchain_optimized/install/host_lib --with-cloog=/home/sying/wucaiyuan_toolchain/v300/uclibc_gcc4.8_linaro_toolchain_optimized/install/host_lib --with-libelf=/home/sying/wucaiyuan_toolchain/v300/uclibc_gcc4.8_linaro_toolchain_optimized/install/host_lib --enable-libgomp --disable-libitm --enable-poison-system-directories --with-libelf=/home/sying/wucaiyuan_toolchain/v300/uclibc_gcc4.8_linaro_toolchain_optimized/install/host_lib --with-pkgversion=Hisilicon_v300 --with-bugurl=http://www.hisilicon.com/cn/service/claim.html
Thread model: posix
gcc version 4.8.3 20131202 (prerelease) (Hisilicon_v300)
swann@ubuntu:/opt$ git --version
git version 2.7.4
swann@ubuntu:/opt$
需要替换一下官网webrtc的Git仓库地址
git config --global user.email "邮箱"
git config --global user.name "名称"
git config --global url.http://120.92.49.206:3232/chromiumsrc/webrtc.git.insteadOf https://chromium.googlesource.com/external/webrtc.git
git config --global url.http://120.92.49.206:3232/chromiumsrc/base.git.insteadOf https://chromium.googlesource.com/chromium/src/base
git config --global url.http://120.92.49.206:3232/chromiumsrc/build.git.insteadOf https://chromium.googlesource.com/chromium/src/build
git config --global url.http://120.92.49.206:3232/chromiumsrc/buildtools.git.insteadOf https://chromium.googlesource.com/chromium/src/buildtools
git config --global url.http://120.92.49.206:3232/chromiumsrc/gradle.git.insteadOf https://chromium.googlesource.com/external/github.com/gradle/gradle.git
git config --global url.http://120.92.49.206:3232/chromiumsrc/ios.git.insteadOf https://chromium.googlesource.com/chromium/src/ios.git
git config --global url.http://120.92.49.206:3232/chromiumsrc/testing.git.insteadOf https://chromium.googlesource.com/chromium/src/testing
git config --global url.http://120.92.49.206:3232/chromiumsrc/third_party.git.insteadOf https://chromium.googlesource.com/chromium/src/third_party
git config --global url.http://120.92.49.206:3232/chromiumsrc/clang-format.git.insteadOf https://chromium.googlesource.com/chromium/llvm-project/cfe/tools/clang-format.git
git config --global url.http://120.92.49.206:3232/chromiumsrc/libcxx.git.insteadOf https://chromium.googlesource.com/chromium/llvm-project/libcxx.git
git config --global url.http://120.92.49.206:3232/chromiumsrc/libcxxabi.git.insteadOf https://chromium.googlesource.com/chromium/llvm-project/libcxxabi.git
git config --global url.http://120.92.49.206:3232/chromiumsrc/libunwind.git.insteadOf https://chromium.googlesource.com/external/llvm.org/libunwind.git
git config --global url.http://120.92.49.206:3232/chromiumsrc/android_ndk.git.insteadOf https://chromium.googlesource.com/android_ndk.git
git config --global url.http://120.92.49.206:3232/chromiumsrc/android_tools.git.insteadOf https://chromium.googlesource.com/android_tools.git
git config --global url.http://120.92.49.206:3232/chromiumsrc/auto.git.insteadOf https://chromium.googlesource.com/external/github.com/google/auto.git
git config --global url.http://120.92.49.206:3232/chromiumsrc/catapult.git.insteadOf https://chromium.googlesource.com/catapult.git
git config --global url.http://120.92.49.206:3232/chromiumsrc/compact_enc_det.git.insteadOf https://chromium.googlesource.com/external/github.com/google/compact_enc_det.git
git config --global url.http://120.92.49.206:3232/chromiumsrc/colorama.git.insteadOf https://chromium.googlesource.com/external/colorama.git
git config --global url.http://120.92.49.206:3232/chromiumsrc/depot_tools.git.insteadOf https://chromium.googlesource.com/chromium/tools/depot_tools.git
git config --global url.http://120.92.49.206:3232/chromiumsrc/errorprone.git.insteadOf https://chromium.googlesource.com/chromium/third_party/errorprone.git
git config --global url.http://120.92.49.206:3232/chromiumsrc/ffmpeg.git.insteadOf https://chromium.googlesource.com/chromium/third_party/ffmpeg.git
git config --global url.http://120.92.49.206:3232/chromiumsrc/findbugs.git.insteadOf https://chromium.googlesource.com/chromium/deps/findbugs.git
git config --global url.http://120.92.49.206:3232/chromiumsrc/freetype2.git.insteadOf https://chromium.googlesource.com/chromium/src/third_party/freetype2.git
git config --global url.http://120.92.49.206:3232/chromiumsrc/harfbuzz.git.insteadOf https://chromium.googlesource.com/external/github.com/harfbuzz/harfbuzz.git
git config --global url.http://120.92.49.206:3232/chromiumsrc/gtest-parallel.git.insteadOf https://chromium.googlesource.com/external/github.com/google/gtest-parallel
git config --global url.http://120.92.49.206:3232/chromiumsrc/googletest.git.insteadOf https://chromium.googlesource.com/external/github.com/google/googletest.git
git config --global url.http://120.92.49.206:3232/chromiumsrc/icu.git.insteadOf https://chromium.googlesource.com/chromium/deps/icu.git
git config --global url.http://120.92.49.206:3232/chromiumsrc/jsr-305.git.insteadOf https://chromium.googlesource.com/external/jsr-305.git
git config --global url.http://120.92.49.206:3232/chromiumsrc/jsoncpp.git.insteadOf https://chromium.googlesource.com/external/github.com/open-source-parsers/jsoncpp.git
git config --global url.http://120.92.49.206:3232/chromiumsrc/junit.git.insteadOf https://chromium.googlesource.com/external/junit.git
git config --global url.http://120.92.49.206:3232/chromiumsrc/fuzzer.git.insteadOf https://chromium.googlesource.com/chromium/llvm-project/compiler-rt/lib/fuzzer.git
git config --global url.http://120.92.49.206:3232/chromiumsrc/libjpeg_turbo.git.insteadOf https://chromium.googlesource.com/chromium/deps/libjpeg_turbo.git
git config --global url.http://120.92.49.206:3232/chromiumsrc/libsrtp.git.insteadOf https://chromium.googlesource.com/chromium/deps/libsrtp.git
git config --global url.http://120.92.49.206:3232/chromiumsrc/libvpx.git.insteadOf https://chromium.googlesource.com/webm/libvpx.git
git config --global url.http://120.92.49.206:3232/chromiumsrc/libyuv.git.insteadOf https://chromium.googlesource.com/libyuv/libyuv.git
git config --global url.http://120.92.49.206:3232/chromiumsrc/linux-syscall-support.git.insteadOf https://chromium.googlesource.com/linux-syscall-support.git
git config --global url.http://120.92.49.206:3232/chromiumsrc/mockito.git.insteadOf https://chromium.googlesource.com/external/mockito/mockito.git
git config --global url.http://120.92.49.206:3232/chromiumsrc/nasm.git.insteadOf https://chromium.googlesource.com/chromium/deps/nasm.git
git config --global url.http://120.92.49.206:3232/chromiumsrc/openh264.git.insteadOf https://chromium.googlesource.com/external/github.com/cisco/openh264
git config --global url.http://120.92.49.206:3232/chromiumsrc/requests.git.insteadOf https://chromium.googlesource.com/external/github.com/kennethreitz/requests.git
git config --global url.http://120.92.49.206:3232/chromiumsrc/robolectric.git.insteadOf https://chromium.googlesource.com/external/robolectric.git
git config --global url.http://120.92.49.206:3232/chromiumsrc/ub-uiautomator.git.insteadOf https://chromium.googlesource.com/chromium/third_party/ub-uiautomator.git
git config --global url.http://120.92.49.206:3232/chromiumsrc/usrsctp.git.insteadOf https://chromium.googlesource.com/external/github.com/sctplab/usrsctp
git config --global url.http://120.92.49.206:3232/chromiumsrc/binaries.git.insteadOf https://chromium.googlesource.com/chromium/deps/yasm/binaries.git
git config --global url.http://120.92.49.206:3232/chromiumsrc/patched-yasm.git.insteadOf https://chromium.googlesource.com/chromium/deps/yasm/patched-yasm.git
git config --global url.http://120.92.49.206:3232/chromiumsrc/tools.git.insteadOf https://chromium.googlesource.com/chromium/src/tools
git config --global url.http://120.92.49.206:3232/chromiumsrc/client-py.git.insteadOf https://chromium.googlesource.com/infra/luci/client-py.git
git config --global url.http://120.92.49.206:3232/chromiumsrc/boringssl.git.insteadOf https://boringssl.googlesource.com/boringssl.git
从Git仓库下载 depot_tools,并设置环境变量
代码:
root@ubuntu:/opt/webRTC# export trhsy='/opt/webRTC/'
root@ubuntu:/opt/webRTC# cd $trhsy
root@ubuntu:/opt/webRTC# ls
code
root@ubuntu:/opt/webRTC# git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
正克隆到 'depot_tools'...
remote: Enumerating objects: 162, done.
remote: Counting objects: 100% (162/162), done.
remote: Compressing objects: 100% (126/126), done.
remote: Total 32099 (delta 42), reused 151 (delta 35)
接收对象中: 100% (32099/32099), 32.60 MiB | 10.44 MiB/s, 完成.
处理 delta 中: 100% (21166/21166), 完成.
检查连接... 完成。
root@ubuntu:/opt/webRTC# ls
code depot_tools
root@ubuntu:/opt/webRTC# cd depot_tools/
root@ubuntu:/opt/webRTC/depot_tools# git checkout gitlab
分支 gitlab 设置为跟踪来自 origin 的远程分支 gitlab。
切换到一个新分支 'gitlab'
root@ubuntu:/opt/webRTC/depot_tools# chmod +x $trhsy/depot_tools/cipd
root@ubuntu:/opt/webRTC/depot_tools# export PATH=$trhsy/depot_tools:$PATH
root@ubuntu:/opt/webRTC/depot_tools#
紧接着开始拉取webRTC的源码
root@ubuntu:/opt/webRTC/depot_tools# mkdir $trhsy/webRTC_code
root@ubuntu:/opt/webRTC/depot_tools# cd $trhsy/webRTC_code/
root@ubuntu:/opt/webRTC/webRTC_code# gclient config --name src https://chromium.googlesource.com/external/webrtc.git@gitlab
/opt/webRTC//depot_tools/update_depot_tools config --name src https://chromium.googlesource.com/external/webrtc.git@gitlab
root@ubuntu:/opt/webRTC/webRTC_code# export CDS_CLANG_BUCKET_OVERRIDE=http://120.92.49.206:3232/chromiumsrc/commondatastorage/raw/master/public/chromium-browser-clang
root@ubuntu:/opt/webRTC/webRTC_code# gclient sync --patch-ref=https://chromium.googlesource.com/chromium/src/build.git@gitlab
/opt/webRTC//depot_tools/update_depot_tools sync --patch-ref=https://chromium.googlesource.com/chromium/src/build.git@gitlab
________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://chromium.googlesource.com/external/webrtc.git /opt/webRTC/webRTC_code/_gclient_src_RRbsdx' in '/opt/webRTC/webRTC_code'
Cloning into '/opt/webRTC/webRTC_code/_gclient_src_RRbsdx'...
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 317914 (delta 0), reused 0 (delta 0) 4 MiB/s
Receiving objects: 100% (317914/317914), 256.51 MiB | 11.34 MiB/s, done.
Resolving deltas: 100% (235456/235456), done.
Checking connectivity... done.
> curl -s http://120.92.49.206:3232/chromiumsrc/cipd/raw/master/public/gn/gn/linux-amd64@64b846c96daeb3eaf08e26d8a84d8451c6cb712b | tar -xzf - -C src/buildtools/linux64
> curl -s http://120.92.49.206:3232/chromiumsrc/cipd/raw/master/public/gn/gn/linux-amd64@64b846c96daeb3eaf08e26d8a84d8451c6cb712b | tar -xzf - -C src/buildtools/linux64
Syncing projects: 27% (10/37) src/base
[0:01:33] Still working on:
[0:01:33] src/third_party
[0:01:33] src/tools
[0:01:43] Still working on:
[0:01:43] src/third_party
[0:01:43] src/tools
[0:01:53] Still working on:
[0:01:53] src/third_party
[0:01:53] src/tools
[0:02:03] Still working on:
[0:02:03] src/third_party
[0:02:03] src/tools
[0:02:13] Still working on:
[0:02:13] src/third_party
[0:02:13] src/tools
[0:02:23] Still working on:
[0:02:23] src/third_party
[0:02:23] src/tools
[0:02:28] Still working on:
[0:02:28] src/third_party
[0:02:28] src/tools
> curl -s http://120.92.49.206:3232/chromiumsrc/cipd/raw/master/public/infra/tools/luci/isolate/linux-amd64@25958d48e89e980e2a97daeddc977fb5e2e1fb8c | tar -xzf - -C src/tools/luci-go
> curl -s http://120.92.49.206:3232/chromiumsrc/cipd/raw/master/public/infra/tools/luci/swarming/linux-amd64@25958d48e89e980e2a97daeddc977fb5e2e1fb8c | tar -xzf - -C src/tools/luci-go
> curl -s http://120.92.49.206:3232/chromiumsrc/cipd/raw/master/public/infra/tools/luci/isolated/linux-amd64@25958d48e89e980e2a97daeddc977fb5e2e1fb8c | tar -xzf - -C src/tools/luci-go
> curl -s http://120.92.49.206:3232/chromiumsrc/cipd/raw/master/public/infra/tools/luci/swarming/linux-amd64@25958d48e89e980e2a97daeddc977fb5e2e1fb8c | tar -xzf - -C src/tools/luci-go
> curl -s http://120.92.49.206:3232/chromiumsrc/cipd/raw/master/public/infra/tools/luci/isolated/linux-amd64@25958d48e89e980e2a97daeddc977fb5e2e1fb8c | tar -xzf - -C src/tools/luci-go
> curl -s http://120.92.49.206:3232/chromiumsrc/cipd/raw/master/public/infra/tools/luci/isolate/linux-amd64@25958d48e89e980e2a97daeddc977fb5e2e1fb8c | tar -xzf - -C src/tools/luci-go
Syncing projects: 40% (15/37) src/tools/swarming_client
[0:03:29] Still working on:
[0:03:29] src/third_party
[0:03:39] Still working on:
[0:03:39] src/third_party
[0:03:49] Still working on:
[0:03:49] src/third_party
[0:03:59] Still working on:
[0:03:59] src/third_party
[0:04:09] Still working on:
[0:04:09] src/third_party
[0:04:19] Still working on:
[0:04:19] src/third_party
[0:04:29] Still working on:
[0:04:29] src/third_party
[0:04:39] Still working on:
[0:04:39] src/third_party
[0:04:49] Still working on:
[0:04:49] src/third_party
[0:04:59] Still working on:
[0:04:59] src/third_party
[0:05:09] Still working on:
[0:05:09] src/third_party
[0:05:19] Still working on:
[0:05:19] src/third_party
[0:05:29] Still working on:
[0:05:29] src/third_party
[0:05:39] Still working on:
[0:05:39] src/third_party
[0:05:50] Still working on:
[0:05:50] src/third_party
[0:06:00] Still working on:
[0:06:00] src/third_party
[0:06:10] Still working on:
[0:06:10] src/third_party
[0:06:20] Still working on:
[0:06:20] src/third_party
[0:06:30] Still working on:
[0:06:30] src/third_party
[0:06:40] Still working on:
[0:06:40] src/third_party
[0:06:50] Still working on:
[0:06:50] src/third_party
[0:07:00] Still working on:
[0:07:00] src/third_party
[0:07:10] Still working on:
[0:07:10] src/third_party
[0:07:20] Still working on:
[0:07:20] src/third_party
[0:07:30] Still working on:
[0:07:30] src/third_party
[0:07:35] Still working on:
[0:07:35] src/third_party
Syncing projects: 43% (16/37) src/third_party
Syncing projects: 45% (1Syncing projects: 48% (18/37) src/third_party/colorama/src Syncing projects: 51% (19/37) src/third_party/googletest/src
Syncing projects: 54% (20/37) src/third_party/jsoncpp/source
Syncing projects: 56% (21/37) src/third_party/libFuzzer/src
Syncing projects: 59% (22/37) src/third_party/libjpeg_turbo
Syncing projects: 62% (23/37) src/third_party/libsrtp
Syncing projects: 64% (24/37) src/third_party/frSyncing projects: 67% (25/37) src/third_party/depot_tools Syncing projects: 70% (26/37) src/third_party/lss
Syncing projects: 72% (27/37) src/third_party/libyuv
Syncing projects: 75% (28/37) src/third_party/harfbuzz-ng/src
Syncing projects: 78% (29/37) src/third_party/usrsctp/usrsctplib
Syncing projects: 81% (30/37) src/third_party/nasm
Syncing projects: 83% (31/37) src/third_party/yasm/source/patched-yasm Syncing projects: 86% (32/37) src/third_party/boringssl/Syncing projects: 89% (33/37) src/third_party/libvpx/source/libvpx
Syncing projects: 91% (34/37) src/third_party/ffmpeg
Syncing projects: 94% (35/37) src/third_party/openh264/src
Syncing projects: 97% (36/37) src/third_party/catapult
SSyncing projects: 100% (37/37), done.
________ running 'cipd ensure -log-level error -root /opt/webRTC/webRTC_code -ensure-file /tmp/tmp7R7HwV.ensure' in '.'
/opt/webRTC//depot_tools/.cipd_client selfupdate -version-file /opt/webRTC//depot_tools/cipd_client_version -service-url https://chrome-infra-packages.appspot.com
exec /opt/webRTC//depot_tools/.cipd_client ensure -log-level error -root /opt/webRTC/webRTC_code -ensure-file /tmp/tmp7R7HwV.ensure
Running hooks: 9% ( 2/22) disable_Running hooks: 22% ( 5/22) sysroot_x86 2) sysroot_arm
________ running '/usr/bin/python src/build/linux/sysroot_scripts/install-sysroot.py --arch=i386' in '/opt/webRTC/webRTC_code'
Installing Debian sid i386 root image: /opt/webRTC/webRTC_code/src/build/linux/debian_sid_i386-sysroot
Downloading http://120.92.49.206:3232/chromiumsrc/chrome-linux-sysroot/raw/master/public/toolchain/9e6279438ece6fb42b5333ca90d5e9d0c188a403/debian_sid_i386_sysroot.tar.xz
Hook '/usr/bin/python src/build/linux/sysroot_scripts/install-sysroot.py --arch=i386' took 11.02 secs
Running hooks: 31% ( 7/22) sysroot_x64
________ running '/usr/bin/python src/build/linux/sysroot_scripts/install-sysroot.py --arch=amd64' in '/opt/webRTC/webRTC_code'
Installing Debian sid amd64 root image: /opt/webRTC/webRTC_code/src/build/linux/debian_sid_amd64-sysroot
Downloading http://120.92.49.206:3232/chromiumsrc/chrome-linux-sysroot/raw/master/public/toolchain/e7c53f04bd88d29d075bfd1f62b073aeb69cbe09/debian_sid_amd64_sysroot.tar.xz
Hook '/usr/bin/python src/build/linux/sysroot_scripts/install-sysroot.py --arch=amd64' took 16.84 secs
Running hooks: 50% (11/22) binutils
________ running '/usr/bin/python src/third_party/binutils/download.py' in '/opt/webRTC/webRTC_code'
curl -s http://120.92.49.206:3232/chromiumsrc/google-storage/raw/master/public/chromium-binutils/binutils.tar.bz2@69bedb1192a03126687f75cb6cf1717758a1a59f -o /opt/webRTC/webRTC_code/src/third_party/binutils/Linux_x64/binutils.tar.bz2
Downloading /opt/webRTC/webRTC_code/src/third_party/binutils/Linux_x64/binutils.tar.bz2
Extracting /opt/webRTC/webRTC_code/src/third_party/binutils/Linux_x64/binutils.tar.bz2
Running hooks: 54% (12/22) clang
________ running '/usr/bin/python src/tools/clang/scripts/update.py' in '/opt/webRTC/webRTC_code'
Downloading http://120.92.49.206:3232/chromiumsrc/commondatastorage/raw/master/public/chromium-browser-clang/Linux_x64/clang-357692-1.tgz .......... Done.
Hook '/usr/bin/python src/tools/clang/scripts/update.py' took 12.13 secs
Running hooks: 59% (13/22) lastchange RRunning hooks: 72% (16/22) clang_format_linux
________ running 'download_from_google_storage --no_resume --platform=linux* --no_auth --bucket chromium-clang-format -s src/buildtools/linux64/clang-format.sha1' in '/opt/webRTC/webRTC_code'
curl -s http://120.92.49.206:3232/chromiumsrc/google-storage/raw/master/public/chromium-clang-format/linux/clang-format@942fc8b1789144b8071d3fc03ff0fcbe1cf81ac8 -o src/buildtools/linux64/clang-format
Running hooks: 90% (20/22) msan_chained_origins
________ running 'download_from_google_storage --no_resume --no_auth --bucket chromium-instrumented-libraries -s src/third_party/instrumented_libraries/binaries/msan-chained-origins-trusty.tgz.sha1' in '/opt/webRTC/webRTC_code'
curl -s http://120.92.49.206:3232/chromiumsrc/google-storage/raw/master/public/chromium-instrumented-libraries/msan-chained-origins-trusty.tgz@0185d9b6c6fdfbcfffa61d8ac9f19e8879c4dee2 -o src/third_party/instrumented_libraries/binaries/msan-chained-origins-trusty.tgz
Running hooks: 95% (21/22) msan_no_origins
________ running 'download_from_google_storage --no_resume --no_auth --bucket chromium-instrumented-libraries -s src/third_party/instrumented_libraries/binaries/msan-no-origins-trusty.tgz.sha1' in '/opt/webRTC/webRTC_code'
curl -s http://120.92.49.206:3232/chromiumsrc/google-storage/raw/master/public/chromium-instrumented-libraries/msan-no-origins-trusty.tgz@d429da145648e1795ad8b9005b219b8e6888b79f -o src/third_party/instrumented_libraries/binaries/msan-no-origins-trusty.tgz
Running hooks: 100% (22/22)
________ running 'download_from_google_storage --directory --recursive --num_threads=10 --no_auth --quiet --bucket chromium-webrtc-resources src/resources' in '/opt/webRTC/webRTC_code'
curl -s http://120.92.49.206:3232/chromiumsrc/google-storage/raw/master/public/chromium-webrtc-resources/foreman_cif.yuv@db8cc13114cfe550fefa264ea70427e1fa4f9bba -o src/resources/foreman_cif.yuv
curl -s http://120.92.49.206:3232/chromiumsrc/google-storage/raw/master/public/chromium-webrtc-resources/foreman_480x272.yuv@65717a7be6dc7ce5d88afedc73e46838aa0a3abc -o src/resources/foreman_480x272.yuv
curl -s http://120.92.49.206:3232/chromiumsrc/google-storage/raw/master/public/chromium-webrtc-resources/far44_stereo.pcm@f812b1cfff98da276973e947b1ba177cd462f58a -o src/resources/far44_stereo.pcm
curl -s http://120.92.49.206:3232/chromiumsrc/google-storage/raw/master/public/chromium-webrtc-resources/e2e_audio_in.pcm@892d292c1dcd3b5cee5c71d8fa5d21118fbfe3f7 -o src/resources/e2e_audio_in.pcm
curl -s http://120.92.49.206:3232/chromiumsrc/google-storage/raw/master/public/chromium-webrtc-resources/verizon3g-uplink.rx@87d02bc510eac4b8b4a2453687c6b49f39aa481c -o src/resources/verizon3g-uplink.rx
curl -s http://120.92.49.206:3232/chromiumsrc/google-storage/raw/master/public/chromium-webrtc-resources/tmobile-downlink.rx@1998229c3ded7222faa4fcb85d1237ef54766c58 -o src/resources/tmobile-downlink.rx
curl -s http://120.92.49.206:3232/chromiumsrc/google-storage/raw/master/public/chromium-webrtc-resources/deflicker_before_cif_short.yuv@849f88896b1d00c2625c247e9e06a19d2ae0175c -o src/resources/deflicker_before_cif_short.yuv
curl -s http://120.92.49.206:3232/chromiumsrc/google-storage/raw/master/public/chromium-webrtc-resources/ref03.aecdump@04f9f47938efa99d0389672ff2d83c10f04a1752 -o src/resources/ref03.aecdump
curl -s http://120.92.49.206:3232/chromiumsrc/google-storage/raw/master/public/chromium-webrtc-resources/foreman_128x96.yuv@bf2fe75c6921c2be9c8cfd1cc00c6540133a2931 -o src/resources/foreman_128x96.yuv
curl -s http://120.92.49.206:3232/chromiumsrc/google-storage/raw/master/public/chromium-webrtc-resources/short_mixed_mono_48.dat@8c18538d80ea6583dbed0fe5cdabb1ea030ae72b -o src/resources/short_mixed_mono_48.dat
curl -s http://120.92.49.206:3232/chromiumsrc/google-storage/raw/master/public/chromium-webrtc-resources/far8_stereo.pcm@6f543f892cd3740a3a1366a486a892766d1f0a79 -o src/resources/far8_stereo.pcm
curl -s http://120.92.49.206:3232/chromiumsrc/google-storage/raw/master/public/chromium-webrtc-resources/reference_less_video_test_file.y4m@5a1620516daf59870158a66230d7bafd9fe9afa1 -o src/resources/reference_less_video_test_file.y4m
curl -s http://120.92.49.206:3232/chromiumsrc/google-storage/raw/master/public/chromium-webrtc-resources/near48_stereo.pcm@6c63f53a6ea6b25b91616a7d03c56cd08362ca22 -o src/resources/near48_stereo.pcm
curl -s http://120.92.49.206:3232/chromiumsrc/google-storage/raw/master/public/chromium-webrtc-resources/sprint-uplink.rx@46ac4f207c9437b1c4a35c3e398da65354f49742 -o src/resources/sprint-uplink.rx
curl -s http://120.92.49.206:3232/chromiumsrc/google-storage/raw/master/public/chromium-webrtc-resources/reference_video_640x360_30fps.y4m@f9cabbf3a9c5562cd6cdfd19aae1cb5ef8a7ad7d -o src/resources/reference_video_640x360_30fps.y4m
curl -s http://120.92.49.206:3232/chromiumsrc/google-storage/raw/master/public/chromium-webrtc-resources/foremanColorEnhanced_cif_short.yuv@ce229fea854fbce532fe430b5b5a8c9b5db65d94 -o src/resources/foremanColorEnhanced_cif_short.yuv
curl -s http://120.92.49.206:3232/chromiumsrc/google-storage/raw/master/public/chromium-webrtc-resources/foreman_160x120.yuv@315d8a7cc06fe15b68a6f2106d59d25b16270552 -o src/resources/foreman_160x120.yuv
curl -s http://120.92.49.206:3232/chromiumsrc/google-storage/raw/master/public/chromium-webrtc-resources/verizon4g-uplink.rx@2d32cd78d75549a5d0795bb9fbe35a00663f949a -o src/resources/verizon4g-uplink.rx
curl -s http://120.92.49.206:3232/chromiumsrc/google-storage/raw/master/public/chromium-webrtc-resources/far32_stereo.pcm@f143c04d4ab848e97f5bbb19f0799097a0d93c44 -o src/resources/far32_stereo.pcm
........
......
...
..
.
此处省略,很长很长一段时间,貌似需要下一个小时,因为有10多G
........
......
.....
....
...
..
.
如果这段时间你没事的话可以去打个游戏刷个视频,站起来运动一下
下载完成后,编译一下解决方案,(建议更换为阿里云的源)
root@ubuntu:/opt/webRTC/webRTC_code# cd src
root@ubuntu:/opt/webRTC/webRTC_code/src# ls
abseil-in-webrtc.md build CODE_OF_CONDUCT.md crypto LICENSE native-api.md pc README.chromium sdk test video
api BUILD.gn codereview.settings data license_template.txt out PRESUBMIT.py README.md stats testing WATCHLISTS
audio build_overrides common_audio DEPS logging OWNERS presubmit_test_mocks.py resources style-guide third_party webrtc.gni
AUTHORS buildtools common_types.h ENG_REVIEW_OWNERS media p2p presubmit_test.py rtc_base style-guide.md tools whitespace.txt
base call common_video examples modules PATENTS pylintrc rtc_tools system_wrappers tools_webrtc
root@ubuntu:/opt/webRTC/webRTC_code/src# ./build/install-build-deps.sh --no-chromeos-fonts
Skipping debugging symbols.
Including 32-bit libraries.
Including ARM cross toolchain.
Including NaCl, NaCl toolchain, NaCl ports dependencies.
命中:1 http://mirrors.aliyun.com/ubuntu xenial InRelease
获取:2 http://mirrors.aliyun.com/ubuntu xenial-updates InRelease [109 kB]
获取:3 http://mirrors.aliyun.com/ubuntu xenial-backports InRelease [107 kB]
获取:4 http://mirrors.aliyun.com/ubuntu xenial-security InRelease [109 kB]
获取:5 http://packages.microsoft.com/repos/code stable InRelease [10.4 kB]
获取:6 http://mirrors.aliyun.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [326 kB]
获取:7 http://mirrors.aliyun.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [281 kB]
命中:8 http://archive.canonical.com/ubuntu xenial InRelease
获取:9 http://mirrors.aliyun.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [437 kB]
命中:10 http://archive.ubuntu.com/ubuntu xenial InRelease
获取:11 http://mirrors.aliyun.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [5,960 B]
获取:12 http://mirrors.aliyun.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [3,328 B]
获取:13 http://mirrors.aliyun.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [6,616 B]
获取:14 http://packages.microsoft.com/repos/code stable/main arm64 Packages [17.1 kB]
获取:15 http://mirrors.aliyun.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [93.7 kB]
获取:16 http://mirrors.aliyun.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [130 kB]
获取:17 http://mirrors.aliyun.com/ubuntu xenial-security/multiverse amd64 DEP-11 Metadata [2,468 B]
获取:18 http://packages.microsoft.com/repos/code stable/main armhf Packages [17.0 kB]
已下载 1,657 kB,耗时 1秒 (1,014 kB/s)
正在读取软件包列表... 完成
Finding missing packages...
Packages required: libasound2:i386 libcap2:i386 libelf-dev:i386 libfontconfig1:i386 libglib2.0-0:i386 libgpm2:i386 libncurses5:i386 libnss3:i386 libpango1.0-0:i386 libpci3:i386 libssl1.0.0:i386 libssl-dev:i386 libtinfo-dev:i386 libudev1:i386 libuuid1:i386 libx11-xcb1:i386 libxcomposite1:i386 libxcursor1:i386 libxdamage1:i386 libxi6:i386 libxrandr2:i386 libxss1:i386 libxtst6:i386 linux-libc-dev:i386 ant apache2-bin autoconf binutils binutils-aarch64-linux-gnu binutils-arm-linux-gnueabihf binutils-mips64el-linux-gnuabi64 binutils-mipsel-linux-gnu bison bzip2 cdbs cmake curl dbus-x11 devscripts dpkg-dev elfutils fakeroot flex g++ g++-5-multilib g++-5-multilib-arm-linux-gnueabihf g++-arm-linux-gnueabihf gawk gcc-5-multilib-arm-linux-gnueabihf gcc-arm-linux-gnueabihf git-core git-svn g++-mingw-w64-i686 gperf intltool lib32gcc1 lib32ncurses5-dev lib32stdc++6 lib32z1-dev libapache2-mod-php7.0 libappindicator3-1 libappindicator3-dev libasound2 libasound2-dev libatk1.0-0 libatspi2.0-0 libatspi2.0-dev libav-tools libbluetooth-dev libbrlapi0.6 libbrlapi-dev libbz2-1.0 libbz2-dev libc6 libc6-dev libc6-dev-armhf-cross libc6-i386 libcairo2 libcairo2-dev libcap2 libcap-dev libcups2 libcups2-dev libcurl4-gnutls-dev libdrm-dev libelf-dev libexpat1 libffi6 libffi-dev libfontconfig1 libfreetype6 libgbm-dev libglib2.0-0 libglib2.0-dev libglu1-mesa-dev libgnome-keyring0 libgnome-keyring-dev libgtk-3-0 libgtk-3-dev libjpeg-dev libkrb5-dev libnspr4 libnspr4-dev libnss3 libnss3-dev libpam0g libpam0g-dev libpango1.0-0 libpci3 libpci-dev libpcre3 libpixman-1-0 libpng16-16 libpulse0 libpulse-dev libsctp-dev libspeechd2 libspeechd-dev libsqlite3-0 libsqlite3-dev libssl-dev libstdc++6 libtinfo-dev libtool libudev1 libudev-dev libuuid1 libwayland-egl1-mesa libwww-perl libx11-6 libx11-xcb1 libxau6 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxdmcp6 libxext6 libxfixes3 libxi6 libxinerama1 libxkbcommon-dev libxrandr2 libxrender1 libxslt1-dev libxss-dev libxt-dev libxtst6 libxtst-dev linux-libc-dev-armhf-cross locales openbox p7zip patch perl php7.0-cgi pkg-config python python-cherrypy3 python-crypto python-dev python-numpy python-opencv python-openssl python-psutil python-yaml realpath rpm ruby subversion texinfo uuid-dev wdiff x11-utils xcompmgr xsltproc xutils-dev xvfb xz-utils zip zlib1g
Installing and upgrading packages: cmake .
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
建议安装:
codeblocks eclipse ninja-build
下列【新】软件包将被安装:
cmake
升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
需要下载 0 B/2,623 kB 的归档。
解压缩后会消耗 14.6 MB 的额外空间。
正在选中未选择的软件包 cmake。
(正在读取数据库 ... 系统当前共安装有 244812 个文件和目录。)
正准备解包 .../cmake_3.5.1-1ubuntu3_amd64.deb ...
正在解包 cmake (3.5.1-1ubuntu3) ...
正在处理用于 man-db (2.7.5-1) 的触发器 ...
正在设置 cmake (3.5.1-1ubuntu3) ...
Skipping installation of Chrome OS fonts.
Installing locales.
Locales already up-to-date.
root@ubuntu:/opt/webRTC/webRTC_code/src#
使用gn快速编译,我这边是编译过所以很快,到时候有坑自己填哈
root@ubuntu:/opt/webRTC/webRTC_code/src# gn gen out/Release --args='target_os="linux" enable_iterator_debugging=false enable_profiling=false is_clang=false is_debug=false is_desktop_linux=false is_nacl_glibc=true libyuv_use_neon=true rtc_build_with_neon=true rtc_include_internal_audio_device=false rtc_include_pulse_audio=false rtc_libvpx_build_vp9=false rtc_use_gtk=false strip_absolute_paths_from_debug_symbols=true treat_warnings_as_errors=false use_aura=false use_custom_libcxx=true use_dbus=false target_sysroot="/opt/hisi-linux/x86-arm/arm-hisiv300-linux/target" use_gold=true use_goma=false use_lld=false use_ozone=false use_udev=false rtc_build_examples=false rtc_build_tools=false rtc_include_tests=false use_glib=false target_cpu="arm" rtc_use_x11 = false'
Done. Made 664 targets from 174 files in 1401ms
root@ubuntu:/opt/webRTC/webRTC_code/src# sudo sed -i "s/arm\-linux\-guneabihf/arm\-himix200\-linux/g" out/Release/toolchain.ninja
root@ubuntu:/opt/webRTC/webRTC_code/src# ninja -C out/Release
注意参数:
target_os="linux"
target_sysroot="/opt/hisi-linux/x86-arm/arm-hisiv300-linux/target"
target_cpu="arm"
rtc_use_x11=false
如果不需要测试工程,下面的几个也可以加入
rtc_build_examples=false
rtc_build_tools=false
rtc_include_tests=false
得报错了
/code/src/build/config/compiler/BUILD.gn
/code/src/third_party/pffft/src/pffft.c
搞不定,放弃放弃,什么鬼,这坑真难填,我是搞不定了,本来就是小白。希望大神指点一二。