简体   繁体   中英

Error while creating ccache for Android Rom on OSX

I am trying to use ccache to build the rom faster.

the link at http://source.android.com/source/building.html gives the following code:

 $ 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

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

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

After that you can give the following command and it will work.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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