简体   繁体   English

在OSX上为Android Rom创建ccache时出错

[英]Error while creating ccache for Android Rom on OSX

I am trying to use ccache to build the rom faster. 我正在尝试使用ccache更快地构建rom。

the link at http://source.android.com/source/building.html gives the following code: 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 

However i get the following error on line 3 但是我在第3行收到以下错误

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

Even if i go into the directory and try to execute it by "./ccache -M 50G" it gives the same 'cannot execute binary file' error. 即使我进入目录并尝试通过“ ./ccache -M 50G”执行它,它也会出现相同的“无法执行二进制文件”错误。

Can you guys tell me what am I doing wrong? 你们能告诉我我在做什么错吗?

I was able to solve this problem 我能够解决这个问题

$ export USE_CCACHE=1 

is supposed to go in your .bash_profile 应该放在您的.bash_profile中

After that you can give the following command and it will work. 之后,您可以输入以下命令,它将起作用。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM