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!