Android 5.0 source code compilation, android5.0 source code compilation

Source: Internet
Author: User

Android 5.0 source code compilation, android5.0 source code compilation

If you download the source code directly from the google official website through repo and git, ignore this issue, but because google is restricted to log on in China, by using this method, not everyone can download the source code. The common practice is to copy the source code from others and compile the code by themselves. The following error occurs:

No rule to make target 'external/chromium_org/third_party/angle/. git/Index', need .....

Go to the corresponding directory and find that there is no angle directory at all. git Directory, which can be understood as not downloaded directly from the official website through repo and git, so no. git directory (this directory is the management directory of git,. svn serves the same purpose ). Therefore, there is only one way to prevent the source code from compiling. git/index.

The specific modification is as follows:

Comment out the index section of the external/chromium_org/third_party/angle/src/commit_id.target.linux-arm.mk file:

Original part (the Green Section below the original file is written in 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

......

$ (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)

......

In this way, the index section under the. git source code will not be compiled, and the compilation will be successful!





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.