libcef arm 编译

需要在debian arm 下编译libcef 让qt4 使用,制作一个cef浏览器,qt5有自带的就方便了,由于各种原因必须qt4 首先进行的使用免费翻墙 那速度200kb 要下载谷歌源码 12G 的 东西 得需要多少天那,无奈之下使用付费vpn 速度还是可以的,首先查询各种资料都以失败告终

看到网上以为网友耗时10天钻研出来在 windows下编译 这毅力还是很佩服的,我也准备好了打长期站的 准备,在arm下编译国内还是寥寥无几,还不知道运行效果怎么样,写这边文章的时候已经耗时4天了

我使用了两天电脑不停的测试 白天在公司电脑测试,晚上在家里虚拟机测试

 

环境 64 位 Ubuntu14.04 

mkdir cef
cd cef
sudo apt-get install curl libgtkglext1-dev
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 --no-chromeos-fonts
wget https://bitbucket.org/chromiumembedded/cef/raw/master/tools/automate/automate-git.py
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git

修改 automate-git.py

       "u'deps_file': u'" + deps_file + "', "+\
         "u'safesync_url': u''"+\
       "}]"
+  if options.armbuild:
+    gclient_spec += " ; target_cpu = [u'arm']"
 
   msg('Writing file: %s' % gclient_file)
   if not options.dryrun
  check_pattern_matches(output_file=out_file)
 
 ##
+# Make sure sysroots are downloaded and such.
+##
+run("gclient run_hooks", chromium_dir, depot_tools_dir)
+
+##
 # Build CEF.
 ##
export PATH=$HOME/cef/depot_tools:$PATH
export GYP_DEFINES=target_arch=arm
export GN_DEFINES="is_official_build=true use_sysroot=true use_allocator=none symbol_level=1 arm_float_abi=hard"
python automate-git.py --download-dir=/home/zw/path/to/chromium_git --depot-tools-dir=/home/zw/path/to/depot_tools --branch=3497 --arm-build --build-target=cefsimple

中途遇到此提示

NOTE: Not generating arm configuration due to missing sysroot directory

执行

chromium_git/chromium/src$ ./build/linux/sysroot_scripts/install-sysroot.py --arch=arm

如果不生成 删除cef 重新执行 

python automate-git.py --download-dir=/home/zw/path/to/chromium_git --depot-tools-dir=/home/zw/path/to/depot_tools --branch=3497 --arm-build --build-target=cefsimple

最终生成 

chromium/src/cef/binary_distrib/cef_binary_3.3497.1818.g17f0192_linuxarm

新版本有价值参考文献

https://www.cnblogs.com/caibirdy1985/p/7244961.html

http://magpcss.org/ceforum/viewtopic.php?f=6&t=15907&start=0

https://bitbucket.org/chromiumembedded/cef/wiki/BuildingOnDebian7.md

https://bitbucket.org/chromiumembedded/cef/issues/1990/linux-add-arm-build-support

由于chromiu升级很多文档过老前期接触被带懵的文献 

https://stackoverrun.com/cn/q/8492326

https://blog.csdn.net/yu5151692/article/details/50241981

我需要的arm libcef.so 呢 ?等编译几个小时之后看结果

先上个编译了半个小时的图 ,估计要编译到明天早上了

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值