ubuntu 14.04.1下安装android 4.2编译环境出错总结
2014-12-05 15:46
问题1:
/bin/bash: bison: command not found
解决方法:
使用sudo apt-get install bison
这个包会依赖如下包:
libbison-dev libsigsegv2 m4 ,apt-get 会自动安装这些依赖包.
问题2:
找不到xsltproc命令:
/bin/bash: xsltproc: command not found
解决方法:
可以使用sudo apt-get install xsltproc
zshh@HP:~/work/arm/ARM1/Android/android-4.2.2_r1$ sudo apt-get install xsltproc
问题3:
/bin/bash: flex: command not found
解决方法:
zshh@HP:~/work/arm/ARM1/Android/android-4.2.2_r1$ sudo apt-get install flex
依赖包:
libfl-dev
问题4:
sh: 1: sh: 1: gperf: not found
gperf: not found
解决方法:
zshh@HP:~/work/arm/ARM1/Android/android-4.2.2_r1$ sudo apt-get install gperf
问题5:
In file included from /usr/include/endian.h:60:0,
from /home/zshh/work/arm/ARM1/Android/android-4.2.2_r1/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/../sysroot/usr/include/sys/types.h:217,
from cts/suite/audio_quality/lib/src/SignalProcessingImpl.cpp:17:
/home/zshh/work/arm/ARM1/Android/android-4.2.2_r1/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/../sysroot/usr/include/bits/byteswap.h:22:3: error: #error “Never use