android 编译 bison,Ubuntu搭建android编译环境问题总结

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值