现在的位置: 首页 > 移动开发 > 正文

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

2019年07月24日 移动开发 ⁄ 共 1487字 ⁄ 字号 评论关闭

终于在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))))))))))))))))))))))))))))

抱歉!评论已关闭.