【问题标题】:Error while creating ccache for Android Rom on OSX在 OSX 上为 Android Rom 创建 ccache 时出错
【发布时间】:2015-10-22 18:44:53
【问题描述】:

我正在尝试使用 ccache 更快地构建 rom。

http://source.android.com/source/building.html 的链接给出以下代码:

$ export USE_CCACHE=1
$ export CCACHE_DIR=/<path_of_your_choice>/.ccache
$ prebuilts/misc/linux-x86/ccache/ccache -M 50G

但是我在第 3 行收到以下错误

$ prebuilts/misc/linux-x86/ccache/ccache -M 50G
-bash: prebuilts/misc/linux-x86/ccache/ccache: cannot execute binary file

即使我进入目录并尝试通过“./ccache -M 50G”执行它,它也会给出相同的“无法执行二进制文件”错误。

你们能告诉我我做错了什么吗?

【问题讨论】:

    标签: android osx-yosemite android-5.1.1-lollipop ccache


    【解决方案1】:

    我能够解决这个问题

    $ export USE_CCACHE=1 
    

    应该进入你的 .bash_profile

    之后你可以给出以下命令,它就会工作。

    prebuilts/misc/linux-x86/ccache/ccache -M 50G
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-03-20
      • 2021-12-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-08-16
      • 1970-01-01
      相关资源
      最近更新 更多