Chinaunix首页 | 论坛 | 博客
  • 博客访问: 6570704
  • 博文数量: 1159
  • 博客积分: 12444
  • 博客等级: 上将
  • 技术积分: 12570
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-13 21:34
文章分类

全部博文(1159)

文章存档

2016年(126)

2015年(350)

2014年(56)

2013年(91)

2012年(182)

2011年(193)

2010年(138)

2009年(23)

分类: C/C++

2015-10-18 17:23:24

[root@localhost android4.4_source_code]# mmm external/pcre-8.37

  1. make:进入目录'/home/jinsheng/android4.4_src'  
  2. make: *** 没 有规则可以创建“out/target/product/generic/obj/EXECUTABLES /dex2oatd_intermediates/import_includes”需要的目标“out/target/product/generic /obj/SHARED_LIBRARIES/libartd-compiler_intermediates/export_includes”。 停 止。  
  3. make:离开目录“/home/jinsheng/android4.4_src” 


可能是工程没有make过,单独编译某个模块导致的。先把工程整个make一下。

[root@localhost android4.4_source_code]# m -j5        //Makes from the top of the tree.
                                                //这个过程执行时间很长,大概2-8个小时,看机器配置
                                                //不要轻易在 android源代码 根目录执行:make clean

[root@localhost android4.4_source_code]# mmm external/pcre-8.37


++++++++++++++++++++++++++++++++++++++++++++++++++

解决方案:
http://stackoverflow.com/questions/20490107/building-android-source-error-when-executing-mm

++++++++++++++++++++++++++++++++++++++++++++++++++

It happened to me too.

I was able to solve it by using the mmm command.

From within the framework/base folder, I did:

mmm .

and after that all "mm" commands worked.

"mm -B" vs "mm": The -B switch if forcing the build w/o the use of any existing obj files (as doing clean and then build), where the "mm" command alone will use any existing obj files and continue the build from there. If you have a successful build - you can see that running "mm" won't do a thing, where "mm -B" will do a full build of the current module.

阅读(5582) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~