1. /bin/bash: bison: command not found
方法:sudo apt-get install bison
2. /bin/bash: xsltproc: command not found
方法:sudo apt-get install xsltproc
3./bin/bash: flex: command not found
make: *** [out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_l.cpp] Error 127
方法:sudo apt-get install flex
4. sh: gperf: not found
calling gperf failed: 32512 at ./makeprop.pl line 140.
方法:sudo apt-get install gperf
5. gcc: error trying to exec ‘cc1plus’: execvp: No such file or directory
方法:sudo apt-get install g++
6.collect2: error: ld terminated with signal 9
方法:需要增加ubuntu的虚拟内存。
7. In file included from /usr/include/semaphore.h:22:0,
from cts/suite/audio_quality/lib/include/Semaphore.h:21,
from cts/suite/audio_quality/lib/src/Semaphore.cpp:17:
/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
compilation terminated.
make: In file included from /usr/include/stdlib.h:25:0,
from cts/suite/audio_quality/lib/src/Adb.cpp:16:
/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
compilation terminated.
方法:sudo apt-get install libc6-dev:i386
sudo apt-get install build-essential
sudo apt-get install gcc-multilib
8./bin/sh: gcc: not found
方法:sudo apt-get install gcc,gcc是C的编译器
9.gccgcc: error trying to exec ‘cc1plus’: execvp: gcc: error trying to exec ‘No such file or directory
方法:sudo apt-get install g++,g++是C++的编译器
10. /bin/bash: xmllint: command not found
方法:sudo apt-get install libxml2-utils
11.make[1]: lzma: Command not found
方法:sudo apt-get install lzma