Chinaunix首页 | 论坛 | 博客
  • 博客访问: 174831
  • 博文数量: 42
  • 博客积分: 2185
  • 博客等级: 大尉
  • 技术积分: 455
  • 用 户 组: 普通用户
  • 注册时间: 2009-06-11 21:32
文章分类

全部博文(42)

文章存档

2012年(5)

2011年(13)

2010年(6)

2009年(18)

我的朋友

分类: LINUX

2012-07-25 09:40:11

-    Make sure sun-jdk is installed;
-    Make sure GNU make 3.81 is installed


Tips:

1)    Read ``./build/core/find-jdk-tools-jar.sh’’, this script is too simple, it can’t detect java correctly for distro like Gentoo (even sun-jdk is installed), we need do something like:

                   $ export ANDROID_JAVA_HOME=/opt/sun-jdk-1.6.0.33

2)    More Recent GCC (IE: 4.6+) may already have –D_FORTIFY_SOURCE, we need comment out the below lines:
HOST_GLOBAL_CFLAGS += -D_FORTIFY_SOURCE=0
            In file ./build/core/combo/HOST_linux-x86.mk

3)    Many distro use up-to-date GCC, IE: 4.6.3, GCC 4.6.3 output more warnings than previous version, many Android.mk for HOSTCC have an option ``-Werror’’, if you still get compile error, please locate the right Android.mk, and remove ``-Werror’’ from CFLAGS.
4)    We need choose arm-eabi-gcc from Android release, otherwise you may get error like ``SMC’’ not supported. Please add prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin to $PATH environment variable.

Thanks
Baojun

阅读(1185) | 评论(0) | 转发(0) |
0

上一篇:Kindle Fire CM9 build memo

下一篇:没有了

给主人留下些什么吧!~~