【问题标题】:How to solve "make: *** No rule to make target `out/target/product/generic/root/file_contexts', needed by `snod'. Stop."如何解决“make: *** No rule to make target `out/target/product/generic/root/file_contexts', `snod' 需要。停止。”
【发布时间】:2016-07-13 02:04:58
【问题描述】:

这几天在建android的源码,遇到一个问题,发现对我来说很难解决,问题是:

当我第一次构建整个源代码时,我可以得到正确的结果,system.imguserdata.imgramdisk.img ..所有最终的.img都存在,然后我尝试做一些修改/packages/app/文件夹中的应用程序,当我执行命令make snod时出现错误:

make: *** No rule to make target `out/target/product/generic/root/file_contexts', needed by `snod'.  Stop.

我执行的整个步骤是:

   # source build/envsetup.sh
   # lunch full-eng
   # mmm /package/apps/Calculator( just take Calculator for example)
   # make snod

但这一次,我看不到文件夹/out/target/product/generic 中的和.img 文件,我不知道,谁能帮帮我?

谢谢你..

【问题讨论】:

    标签: android qmake


    【解决方案1】:
    #
    

    您好,我在尝试“make snod”将应用程序添加到系统映像时也遇到了这个问题。我突然想到构建设置可能不正确,因此“make snod”失败了。这是我的尝试(首先将您的密码更改为 Android 开源项目根目录):

    $ source ./build/envsetup.sh
    $ lunch 6
    $ mmm ./packages/experimental/HelloAndroid/
    $ make snod
    

    我通过选择“lunch 6”组合来运行“make”,所以我再次这样做来刷新设置。之后,就成功了。希望这可以帮助你。

    【讨论】:

      猜你喜欢
      • 2015-03-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多