“未指定目标且未找到makefile。停止"。 ,构建android源代码时出错 [英] "No targets specified and no makefile found. Stop." , error occurs while building android source code
问题描述
我从Git存储库下载了Android kitkat源代码(android-4.4.1_r1)。
然后我设置了所需的初始设置环境。
然后尝试构建android源代码。
我根据此链接完成了整个过程https://source.android.com/source/building.html [ ^ ]
我使用的是64位Ubuntu 14.04LTS版本。
在make -j4命令后,我收到以下错误:
make:***未指定目标且未找到makefile。停止。
#### make无法构建一些目标####
有谁知道为什么会出现这个错误?
或
如何成功构建android kitkat源代码?
最后,我已成功构建android源代码。
我是这样做的:
第一次尝试,我下载了Kitkat分支的源代码。但它没有正确下载。(源文件丢失)。
然后,我已经下载了主分支的Android OS源代码,可以正确下载。 />
然后我构建它。
构建它花了5个小时。
最后,我的终端显示以下行:
#### make completed successfully(04:40:46(hh:mm:ss))####
我引用此链接: https://source.android.com/source/building.html [ ^ ]进行源代码下载和构建。
I have downloaded Android kitkat source code(android-4.4.1_r1) from Git repository.
Then I set required initial setup environment.
And then try to build android source code.
I did this entire procedure as per this link https://source.android.com/source/building.html[^]
I am using 64-bit Ubuntu 14.04LTS version.
After "make -j4" command , I got following error :
make: *** No targets specified and no makefile found. Stop.
#### make failed to build some targets ####
Does anybody know why this error occur?
OR
How to build android kitkat source code successfully?
Finally, I have build android source code successfully.
Here is how I did it :
In first attempt, I had downloaded source code of Kitkat branch. But it was not downloaded properly.(source files were missing).
Then, I have downloaded Android OS source code of master branch, which is downloaded properly.
Then I build it.
It took 5 hours to build it.
At the end, my terminal shows following lines :
#### make completed successfully (04:40:46 (hh:mm:ss)) ####
I refer this link : https://source.android.com/source/building.html[^] for source code download and build.
这篇关于“未指定目标且未找到makefile。停止"。 ,构建android源代码时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!