chromium39.0.2132.2 for android 编译问题

用以前同事的一句话说,就是:chrome大神们飞起来了。

为啥这么说呢,查看下chromium的发行版本就知道。今年chromium发行了N多版本。PS:我今年3月份下载chromium34代码,现在更新到40了都(具体不是很清楚)。明年据说要41-47(具体记不住了),总之啊,chromium的发行版本愈加的频繁和活跃。

今天下载了chromium39.0.2132.2代码,接着需要把之前的工作移植上去。在下载(gclient runhooks期间)和执行ninja -C out/Release content_shell_apk的时候,遇到几个问题,之前是没遇到的,现在记录下来,供大家分享。

1. 问题:

Package xtst was not found in the pkg-config search path.

Perhaps you should add the directory containing `xtst.pc‘

to the PKG_CONFIG_PATH environment variable No package ‘xtst‘ found

gyp: Call to ‘pkg-config --cflags xtst‘ returned exit status 1.

解决方式: sudo apt-get install libxtst-dev

2. 问题:

Package libexif was not found in the pkg-config search path.

Perhaps you should add the directory containing `libexif.pc‘

to the PKG_CONFIG_PATH environment variable

No package ‘libexif‘ found

gyp: Call to ‘pkg-config --cflags libexif‘ returned exit status 1.

ans: sudo apt-get install libexif-dev

3. 问题:

Updating projects from gyp files...

Package xscrnsaver was not found in the pkg-config search path.

Perhaps you should add the directory containing `xscrnsaver.pc‘

to the PKG_CONFIG_PATH environment variable

No package ‘xscrnsaver‘ found

gyp: Call to ‘pkg-config --cflags xscrnsaver‘ returned exit status 1.

ans : sudo apt-get install libxss-dev libxdg-basedir-dev libxinerama-dev libxft-dev libcairo2-dev  libdbusmenu-glib-dev

另:我在执行上面命令之前,现将sudo apt-get install
xscrnsaver(tab提示键下所有库)都安装了

4.问题:

ninja: error: unknown target ‘content_shell_apk‘, did you mean ‘content_shell_pak‘?

解决方式:Google提供:

To set the OS=android gyp define:

* If you use different checkouts for android and non-android work, use a chromium.gyp_env in each of your chromium/android checkouts (https://code.google.com/p/chromium/wiki/CommonBuildTasks#chromium.gyp_env):

# Assuming your PWD is in “src”:

echo "{ ‘GYP_DEFINES‘: ‘OS=android‘, }" > ../chromium.gyp_env

* If you never build chromium for platforms other than android, you can alternatively set the GYP_DEFINES environment variable globally in your ~/.bashrc:

echo ‘GYP_DEFINES="OS=android $GYP_DEFINES"‘ >> ~/.bashrc

* If you use the same checkout for android and non-android work, manually set GYP_DEFINES to the right value before you run gyp

GYP_DEFINES=OS=android gclient runhooks

PS: 有时间的孩纸们,赶紧看看chromiumOS吧,预测要火,而且是大火!

时间: 2024-08-27 15:25:30

chromium39.0.2132.2 for android 编译问题的相关文章

windows下cocos2dx3.0开发环境及Android编译环境搭建

cocos2dx更新到了3.x版本,自己一直没有换,现在开发组要求统一换版本,我就把搭建环境的过程记录下来. 一.Windowns下开发环境搭建 1.  所需工具 1)cocos2d-x-3.0rc0.zip   http://cn.cocos2d-x.org/download/  截止写博文时,最新版本为V3.2. 2)VS2012 http://www.baidu.com/s?wd=VS2012 3)Python  https://www.python.org/download/releas

[Android 编译(一)] Ubuntu 16.04 LTS 成功编译 Android 6.0 源码教程

本文转载自:[Android 编译(一)] Ubuntu 16.04 LTS 成功编译 Android 6.0 源码教程 1 前言 经过3天奋战,终于在Ubuntu 16.04上把Android 6.0的源码编译出来了,各种配置,各种error,各种爬坑,特写此博客记录爬坑经历.先上图,Ubuntu上编译完后成功运行模拟器,如图: 2 编译环境 UbuntuKylin 16.04 LTS Android 6.0_r1 Open JDK 7 3 准备工作 (1) 下载android 6.0源码.

第8章 Android 4.0系统的下载与编译

第8章  Android 4.0系统的下载与编译 本章首先的准备Android下载与编译环境,内容主要分为:准备Android下载与编译环境.下载源码.编译源码及内核源码.下载Android 4.0及Goldfish源码中包括下载并初始化repo工具.下载Android源码.其他源码下载源.下载模拟器Goldfish内核源码.编译Android及Goldfish内核源码中切换到Android源码目录命令:$cd WORKING_DIRECTORY 执行如下命令,加载编译过程中用到的命令.环境变量

[Android编译(二)] 从谷歌官网下载android 6.0源码、编译并刷入nexus 6p手机

1 前言 经过一周的奋战,终于从谷歌官网上下载最新的android 6.0.1_r62源码,编译成功,并成功的刷入nexus6p,接着root完毕,现写下这篇博客记录一下实践过程. 2 简介 自己下载android系统源码,修改定制,然后编译刷入安卓手机,想想还有点小激动呢.简单点说一句话--定制我们自己的MIUI,这就是android的魅力,这篇博客博主就来教大家实现自己的定制系统. 首先,要明白下面的基础知识: (1) 什么是aosp? aosp就是android open source p

cocos2d-x 3.0 引用第三方库 及编译成apk时android mk文件写法

cocos2d-x 3.0 中,如果你需要使用CocosStudio.Extensions扩展库 等等,都需要自己手动添加. 添加步骤如下:(比如说现在我要添加libExtensions,libCocosStudio , libGUI) 1.添加附加项目 右击解决方案--->添加现有项目--->添加:项目目录\cocos2d\extensions\proj.win32\libExtensions,然后你会发现左边多了一个libExtensions扩展库 右击解决方案--->添加现有项目-

android 编译错误 Error:(1, 0) Plugin with id 'com.android.application' not found.

在导入一个项目时,由于它本身的gradle版本比较高,你试用比较旧版本的gradle时就报出Plugin with id 'com.android.application' not found.的错误 如果出现如上错误,只需要在build.gradle中添加下面代码即可: (直接加在 android{ } 的外面) buildscript { repositories { jcenter() // or mavenCentral() } dependencies { classpath 'com

Android 编译错误/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.5/../

编译时出现/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../libz.so when searching for -lz错误 ============================================ PLATFORM_VERSION_CODENAME=AOSP PLATFORM_VERSION=AOSP TARGET_PRODUCT=generic TARGET_BUIL

转: 加快Android编译速度

转: http://timeszoro.xyz/2015/11/25/%E5%8A%A0%E5%BF%ABandroid%E7%BC%96%E8%AF%91%E9%80%9F%E5%BA%A6/ 加快Android编译速度 发表于 2015-11-25   | 对于Android开发者而言,随着工程不断的壮大,Android项目的编译时间也逐渐变长,即便是有时候添加一行代码也需要等待好久才能看见期待的效果.之前加快Android编译的工具相对较少,其中最具有代表性的开源项目当属FaceBook的

Android编译详解之lunch命令 【转】

本文转载自: Android编译详解之lunch命令 (2012-10-08 10:27:55) 转载▼ 标签: it 分类: android内核剖析 Android的优势就在于其开源,手机和平板生产商可以根据自己的硬件进行个性定制自己的手机产品,如小米,LePhone,M9等,因此,在我们在对Android的源码进行定制的时候,很有必要了解下,Android的编译过程. 如果你从来没有做过Android代码的编译,那么最官方的编译过程就是查看Android的官方网站:http://source