chromium39.0.2132.2 for Android compilation issues

Source: Internet
Author: User

In the words of a former colleague, it is: The Chrome Gods flew up.

Why do you say that, look at the release of the next chromium to know. This year chromium released more than n versions. PS: I downloaded the CHROMIUM34 code this March, and now it's updated to 40 (not very clear). Next year it is said to be 41-47 (specific), in short, chromium's distribution is increasingly frequent and active.


Download the chromium39.0.2132.2 code today, and then you need to transplant the previous work. During the download (Gclient runhooks) and the implementation of Ninja-c Out/release content_shell_apk, encountered a few problems, was not encountered before, and now recorded, for everyone to share.


1. Question:

Package xtst is 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.

Workaround: sudo apt-get install Libxtst-dev



2. Question:

Package libexif is 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. Question:

Updating projects from Gyp files ...
Package Xscrnsaver is 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-d EV

Another: I am now installing sudo apt-get installxscrnsaver (all libraries under the TAB prompt key) before executing the above command


4. Question:

ninja:error:unknown target ' content_shell_apk ', did you mean ' Content_shell_pak '?

Workaround: Google offers:
To set the os=android gyp define:

* If You use the different checkouts for Android and non-android work with a chromium.gyp_env in each of your Chromium/and Roid Checkouts (https://code.google.com/p/chromium/wiki/CommonBuildTasks#chromium.gyp_env):

# Assuming your PWD are 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 yo U Run Gyp

gyp_defines=os=android gclient runhooks


PS: Have time of the child paper, hurriedly see ChromiumOS Bar, Forecast to fire, and is the fire!

chromium39.0.2132.2 for Android compilation issues

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.