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