Android 5.0 Source Code compilation problem

Source: Internet
Author: User

Reprint: http://blog.csdn.net/shineflowers/article/details/41545057

If you are using repo and git directly from the Google official online download source code, please ignore this problem, but because Google is restricted in the country, through this method not everyone can download the source code, the usual practice is to copy from others, And then compile it yourself, the following error usually occurs:

No rule to do target ' external/chromium_org/third_party/angle/.git/index ', need by .....

Enter the corresponding directory, found in the angle directory, there is no. git directory, this can also be understood, because it is not their own through repo and git directly from the official website download, so there is no. git directory (this directory is Git's management directory, the same as the. svn function).

There are two solutions:

First, create the. git directory under Angile, and then touch a file named index in the. Git directory

CD external/chromium_org/third_party/angle/mkdir  . Gitcd. GitTouch Index

Second, do not let the source code compiled. Git/index Parts

The specific changes are as follows:

Comment out the section about index in the External/chromium_org/third_party/angle/src/commit_id.target.linux-arm.mk file:

The original part (the section in the original file with the green mark below is written on the same line) ... $ (gyp_shared_intermediate_dir)/angle/ID/commit.h: $ (gyp_ Shared_intermediate_dir)/angle/commit_id.py $ (local_path)/third_party/angle/.git/index$ (GYP_TARGET_ DEPENDENCIES) ...

Change into

... $ (gyp_shared_intermediate_dir)/angle/ID/commit.h: $ (gyp_shared_intermediate_dir)/angle/ commit_id.py #$ (local_path)/third_party/angle/.git/index$ (gyp_target_dependencies) ...

This will allow the source code to not compile. Git the index part below, compile can pass, Pro test success!

Android 5.0 Source Code compilation problem

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.