android—mm—mmm—没有规则可以创建target/product/generic/obj/SHARED_LIBRARIES

[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.

<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
阅读(165) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~
评论热议
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值