相关疑难解决方法(0)

如何为 ARM 交叉编译 Chromium?

目标

我需要在mini210s运行Linux 3.0.8 armv7l 的FriendlyARM上安装 Chromium

环境

工具链 depot_tools

得到后depot_tools

vagrant@vagrant:~/depot_tools$ fetch chromium
Run Code Online (Sandbox Code Playgroud)

环境变量

export GYP_CROSSCOMPILE=1
export GYP_DEFINES="target_arch=arm arm_float_abi=hard"
Run Code Online (Sandbox Code Playgroud)

依赖关系

vagrant@vagrant:~/depot_tools/src$  ./chrome/installer/linux/sysroot_scripts/install-debian.wheezy.sysroot.py --arch=arm 
Installing Debian Wheezy arm root image: /home/vagrant/depot_tools/src/chrome/installer/linux/debian_wheezy_arm-sysroot
Downloading http://storage.googleapis.com/chrome-linux-sysroot/toolchain/285950/debian_wheezy_arm_sysroot.tgz

build/install-build-deps.sh --arm
build/install-build-deps-android.sh
gclient sync
Run Code Online (Sandbox Code Playgroud)

编译

build/gyp_chromium -Goutput_dir=out_arm 
ninja -C out_arm/Debug chrome
Run Code Online (Sandbox Code Playgroud)

错误

vagrant@vagrant:~/depot_tools/src$ ninja -C out_arm/Debug chrome
ninja: Entering directory `out_arm/Debug'
[222/18316] CXX obj/third_party/webrtc/modules/audio_coding/codecs/audio_encoder_interface.audio_encoder.o
FAILED: ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF …
Run Code Online (Sandbox Code Playgroud)

arm chrome cross-compilation assembly

12
推荐指数
1
解决办法
2万
查看次数

标签 统计

arm ×1

assembly ×1

chrome ×1

cross-compilation ×1