问题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 [email protected]:~/work/arm/ARM1/Android/android-4.2.2_r1$ sudo apt-get install xsltproc
问题3:
/bin/bash: flex: command not found
解决方法: [email protected]:~/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
解决方法: [email protected]:~/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 <bits/byteswap.h> directly; include <byteswap.h> instead."
host C++: libcts_audio_quality <= cts/suite/audio_quality/lib/src/FileUtil.cpp
解决方法: [email protected]:~/work/arm/ARM1/Android/android-4.2.2_r1$ sudo apt-get install gcc-multilib
问题6:
/bin/bash: xmllint: command not found
解决方法: [email protected]:~/work/arm/ARM1/Android/android-4.2.2_r1$ sudo apt-get install libxml2-utils
问题7:
make: *** [out/target/product/tiny4412/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/bindings/V8CSSCharsetRule.h] Error 1
解决方法: 这个是以为gcc,和g++版本问题. 1、进入/usr/bin $ ls -l gcc* 查看gcc当前连接版本 $ rm gcc 删除gcc连接 同理 $ ls -l g++* $ rm g++ 2、降级到4.4.7版本 $ sudo apt-get install gcc-4.4 $ sudo apt-get install g++-4.4 $ sudo apt-get install g++-4.4-multilib //64位 $ sudo apt-get install gcc-4.4-multilib ln -s gcc-4.4 gcc ln -s g++4.4 g++