在win7共享文件夹下编译android源码

终于在virtualbox下建好了win7(host)与ubuntu12.04(client)之间的共享文件夹,想当然地将android4.3源码拷贝到共享文件夹下尝试编译,结果出现如下warning,并中断了编译过程:

Checking build tools versions...
build/core/main.mk:70: ************************************************************
build/core/main.mk:71: You are building on a case-insensitive filesystem.
build/core/main.mk:72: Please move your source tree to a case-sensitive filesystem.
build/core/main.mk:73: ************************************************************
build/core/main.mk:74: *** Case-insensitive filesystems not supported.  Stop.


网上尝试找了一些解决方案,结果都不如意,其实发现直接查看main.mk更直接:

编译环境若不是windows的话,会检查Case-insensitive filesystems。(这里好像无关紧要)

ifneq ($(HOST_OS),windows)

ifneq ($(HOST_OS)-$(HOST_ARCH),darwin-ppc)

# check for a case sensitive file system

ifneq (a,$(shell mkdir -p $(OUT_DIR) ; /

echo a > $(OUT_DIR)/casecheck.txt; /

echo B > $(OUT_DIR)/CaseCheck.txt; /

cat $(OUT_DIR)/casecheck.txt))

$(warning ************************************************************)

$(warning You are building on a case-insensitive filesystem.)

$(warning Please move your source tree to a case-sensitive filesystem.)

$(warning ************************************************************)

$(error Case-insensitive filesystems not supported)

endif

endif

endif

# Make sure that there are no spaces in the absolute path; the

# build system can't deal with them.

在编译过程中,系统会尝试向源码目录创建OUT_DIR,也就是out文件夹,并生成casecheck.txt。通过这个文件结果,可以判断系统是否是case sensitive(抱歉,我也不知道这处理解是否正确!我也是刚学习,所以有可能误解了)。


既然windows下不能编译,那就乖乖按官方说明,放在ubuntu下编译了。在Ubuntu下编译通过。

然后,就直接将out里的文件拷贝到共享目录下,然后用windows工具烧写。


有些折腾,但一切顺利:-)0))))))))))))))))))))))))))))

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值