编译android2.3
来源:互联网 发布:淘宝属于什么类型 编辑:程序博客网 时间:2024/06/05 17:08
How to compile Android 2.3 on Ubuntu 10.04 32bit
1:issue "You are attempting to build on a 32-bit system"
How to fix:
$ vim build/core/main.mk
change
ifneq (64,$(findstring 64,$(build_arch)))
to
ifneq (i686,$(findstring i686,$(build_arch)))
$(warning ************************************************************)
$(warning You are attempting to build on a 32-bit system.)
$(warning Only 64-bit build environments are supported beyond froyo/2.2.)
$(warning ************************************************************)
$(error stop)
endif
external/clearsilver/cgi/Android.mk,
external/clearsilver/java-jni/Android.mk,
external/clearsilver/util/Android.mk,
external/clearsilver/cs/Android.mk
change
LOCAL_CFLAGS += -m64
LOCAL_LDFLAGS += -m64
to
LOCAL_CFLAGS += -m32
LOCAL_LDFLAGS += -m32
2:issue "host C: libclearsilver-jni <= external/clearsilver/java-jni/j_neo_util.c
In file included from /usr/include/features.h:378,
from /usr/include/string.h:26,
from external/clearsilver/java-jni/j_neo_util.c:1:
/usr/include/gnu/stubs.h:9:27: error: gnu/stubs-64.h: 没有那个文件或目录
make: *** [out/host/linux-x86/obj/SHARED_LIBRARIES/libclearsilver- jni_intermediates/j_neo_util.o]错误"
How to fix:
sudo apt-get install lib64z1-dev libc6-dev-amd64 g++-multilib lib64stdc++6
3:issue:
host SharedLib: libneo_util (out/host/linux-x86/obj/lib/libneo_util.so)
/usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.3.4/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.3.4/libstdc++.a when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.3.4/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.3.4/libstdc++.a when searching for -lstdc++
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/lib/libneo_util.so] Error 1
How to fix:
4
frameworks/base/core/java/android/app/ListActivity.java:319: inconvertible types
found : android.widget.AdapterView<capture of ?>
required: android.widget.ListView
onListItemClick((ListView)parent, v, position, id);
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
How to fix:
Install the JDK 1.6
Reference:
http://iopenfree.appspot.com/?p=4001
http://0123.blog.163.com/blog/static/478831201061214128901/
- 编译android2.3
- android2.3编译小记
- Android2.3编译
- Android2.3编译小记
- S5PV310 android2.3 编译
- android2.3的编译
- android2.3源码编译问题
- android2.3源代码下载编译
- Android2.3下载与编译
- android2.3源码编译小结
- android2.3下载和编译
- Android2.3 如何编译——解决
- Ubuntu32位编译Android2.3 -Gingerbread
- Android2.3在ubuntu下的编译
- Ubuntu32位编译Android2.3 -Gingerbread
- 关于编译android2.3的问题
- android2.3编译的两个问题
- 编译android2.3时出现的问题
- 本地计算机无法启动 Workstation服务
- 091_《Delphi6实务经典》
- NAND和NOR flash的区别
- 《Windows核心编程》第5章 作业
- 计算机十二种常用密码破解法
- 编译android2.3
- .NET下加压缩的类库(免费)DotNetZip Library
- 用intent在activity间传递数据
- 了解 NoSQL 的必读资料
- onInterceptTouchEvent 和 onTouchEvent 调用时序
- android:persistentDrawingCache 的含义
- POJ-1028-Web Navigation解题心得
- 六种语言破解比较和常见思路
- CSS Sprites切图方法