主题 : 虚拟机fedora14下执行./build-android 出错 复制链接 | 浏览器收藏 | 打印
今天的奋斗为的是以后大半生的幸福!
级别: 新手上路
UID: 88020
精华: 0
发帖: 5
金钱: 25 两
威望: 5 点
综合积分: 10 分
注册时间: 2013-03-03
最后登录: 2013-03-09
楼主  发表于: 2013-03-03 14:58

 虚拟机fedora14下执行./build-android 出错

[root@localhost Android-2.3.1]# ./build-android
including device/htc/passion/vendorsetup.sh
including device/samsung/smdkc110/vendorsetup.sh
including device/samsung/smdkv210/vendorsetup.sh
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.1
TARGET_PRODUCT=full_mini210
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=GINGERBREAD
============================================
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
frameworks/base/Android.mk:641: frameworks/base/frameworks/base: No such file or directory
frameworks/base/Android.mk:641: /Android.mk: No such file or directory
build/core/Makefile:19: warning: overriding commands for target `out/target/product/smdkv210/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/Makefile:19: warning: ignoring old commands for target `out/target/product/smdkv210/system/etc/permissions/android.software.live_wallpaper.xml'
make: *** No rule to make target `/Android.mk'.  Stop.

请问出现这个问题的原因是什么啊??   求大神救命~~
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2013-03-04 18:51
frameworks/base/Android.mk:641: frameworks/base/frameworks/base: No such file or directory
frameworks/base/Android.mk:641: /Android.mk: No such file or directory

frameworks/base/Android.mk第641行是什么?
"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: 88020
精华: 0
发帖: 5
金钱: 25 两
威望: 5 点
综合积分: 10 分
注册时间: 2013-03-03
最后登录: 2013-03-09
2楼  发表于: 2013-03-05 16:23

 回 1楼(kasim) 的帖子

include $(call first-makefiles-under,$(LOCAL_PATH))
今天的奋斗为的是以后大半生的幸福!
级别: 新手上路
UID: 88020
精华: 0
发帖: 5
金钱: 25 两
威望: 5 点
综合积分: 10 分
注册时间: 2013-03-03
最后登录: 2013-03-09
3楼  发表于: 2013-03-05 16:29

 回 1楼(kasim) 的帖子

这行代码哪里出错了呢   是不是路径  或是环境变量的问题
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
4楼  发表于: 2013-03-05 22:13

 回 3楼(m_3251388) 的帖子

从这句话本身看没什么问题,问题看起来是$(LOCAL_PATH)展开来的值出了问题。这个变量的值(应该是当前目录的路径)应该是在这个文件的第16行指定的

复制代码
  1. LOCAL_PATH := $(call my-dir)
"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."