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

来源:互联网 发布:epson手机打印软件 编辑:程序博客网 时间:2024/05/18 16:17
[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

上一篇:CentOS7——解压7z文件——p7zip

下一篇:Fedora 24 Will Use Wayland By Default, Fedora 24 Server Drops 32 Bit Support

相关热门文章
  • ORA-600(15599)错误
  • OpenStack最新版本Liberty发布...
  • Oracle 多端口多监听配置...
  • CODE of Balsamiq.Mockups
  • Linux之error while loading s...
  • test123
  • 编写安全代码——小心有符号数...
  • 使用openssl api进行加密解密...
  • 一段自己打印自己的c程序...
  • sql relay的c++接口
  • linux dhcp peizhi roc
  • 关于Unix文件的软链接
  • 求教这个命令什么意思,我是新...
  • sed -e "/grep/d" 是什么意思...
  • 谁能够帮我解决LINUX 2.6 10...
给主人留下些什么吧!~~
评论热议
0 0
原创粉丝点击