“未指定目标且未找到makefile。停止&QUOT。 ,构建android源代码时出错 [英] "No targets specified and no makefile found. Stop." , error occurs while building android source code

查看:882
本文介绍了“未指定目标且未找到makefile。停止&QUOT。 ,构建android源代码时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从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。停止&QUOT。 ,构建android源代码时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆