ubuntu16.04编译CEF的arm版的步骤及问题

本文记录了在Ubuntu 16.04上编译CEF(Chromium Embedded Framework)针对ARM架构的版本时遇到的问题及解决步骤。主要问题在于PPA源失效导致的软件包下载失败,通过更换下载源并手动添加头文件路径成功编译。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

#!/bin/sh -e
#1
mkdir ~/cef_arm2/automate
mkdir ~/cef_arm2/chromium_git


#2
cd ~/cef_arm2
curl 'https://chromium.googlesource.com/chromium/src/+/master/build/install-build-deps.sh?format=TEXT' | base64 -d > install-build-deps.sh
chmod 755 install-build-deps.sh
sudo ./install-build-deps.sh --arm


#3
sudo apt-get install libgtkglext1-dev


#4
cd ~/cef_arm2
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git


#5
export PATH=~/cef_arm2/depot_tools:$PATH


$6
cd ~/cef_arm2/automate
wget https://bitbucket.org/chromiumembedded/cef/raw/master/tools/automate/automate-git.py


#7.1
#创建~/git/cef_arm2/chromium_git/update.sh脚本,将下面的内容写入update.sh脚本中
#!/bin/bash
export CEF_USE_GN=1
export GYP_DEFINES=target_arch=arm
export GN_DEFINES="is_official_build=true use_sysroot=true use_allocator=none symbol_level=0 arm_float_abi=hard enabl
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值