Sunday, September 30, 2012

Android source code build error

There are some issues I have faced while building the android source code ...

I have listed it and of-course  solution too  :)


/bin/bash: prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-gcc: Permission denied
soln : change the permission

prebuilt/linux-x86/sdl/bin/sdl-config: Permission denied
soln : change the permission


/usr/include/features.h:324:26: fatal error: bits/predefs.h: No such file or directory
 soln : apt-get install gcc-multilib  On x86_64 with debian / ubuntu / mint:
 

/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/libstdc++.so when searching for -lstdc++

/usr/bin/ld: cannot find -lstdc++

Soln : sudo ln -s /usr/lib32/libstdc++.so.6 /usr/lib32/libstdc++.so


btw if you get the permission denied error still , do the following

chmod -Rf 777  <android_SRC>

1 comment: