主题 : android编译缺什么东西,怎么安装? 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 75189
精华: 0
发帖: 32
金钱: 160 两
威望: 32 点
综合积分: 64 分
注册时间: 2012-08-03
最后登录: 2012-11-04
楼主  发表于: 2012-11-01 09:22

 android编译缺什么东西,怎么安装?

这是按照友善使用手册操作的。
root@ldy-virtual-machine:/opt/FriendlyARM/mini6410/android/Android-2.3.4# ./build-android
including device/htc/passion/vendorsetup.sh
including device/samsung/crespo/vendorsetup.sh
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.4
TARGET_PRODUCT=mini6410
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GRJ22
============================================
/bin/bash: bison: command not found
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
external/webkit/Android.mk:230: "JavaScript JIT enabled!"
Using 'us' ICU data for FriendlyARM mini6410
build/core/Makefile:21: warning: overriding commands for target `out/target/product/mini6410/system/usr/keylayout/qwerty.kl'
sdk/emulator/keymaps/Android.mk:13: warning: ignoring old commands for target `out/target/product/mini6410/system/usr/keylayout/qwerty.kl'
host C: libhost <= build/libs/host/CopyFile.c
host C++: libhost <= build/libs/host/pseudolocalize.cpp
/bin/bash: g++: command not found
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/pseudolocalize.o] Error 127
make: *** Waiting for unfinished jobs....
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
root@ldy-virtual-machine:/opt/FriendlyARM/mini6410/android/Android-2.3.4#
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2012-11-01 11:46
/bin/bash: g++: command not found

你的PC Linux上需要安装g++编译器。具体怎样安装取决于你PC上装的哪一种Linux发行版。它通常包括在gcc软件安装包里。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 79230
精华: 0
发帖: 3
金钱: 20 两
威望: 4 点
综合积分: 6 分
注册时间: 2012-10-04
最后登录: 2015-03-14
2楼  发表于: 2012-11-01 12:13
缺 bison ~~

#: sudo apt-get install bison
级别: 新手上路
UID: 79230
精华: 0
发帖: 3
金钱: 20 两
威望: 4 点
综合积分: 6 分
注册时间: 2012-10-04
最后登录: 2015-03-14
3楼  发表于: 2012-11-01 12:14
也缺 g++

#: sudo apt-get install g++
级别: 侠客
UID: 80305
精华: 0
发帖: 91
金钱: 460 两
威望: 92 点
综合积分: 182 分
注册时间: 2012-10-22
最后登录: 2017-09-13
4楼  发表于: 2012-11-01 17:16
我一开始也是碰到很多问题,缺很多东西,后来我发现是安装的操作系统的版本有问题。
安装简化版,就会缺很多东西,要下载完全版,就会好很多。