ubuntu12.04先编译android2.3.6源代码
来源:互联网 发布:kali linux 使用教程 编辑:程序博客网 时间:2024/06/05 22:21
1. 下载好代码后,进入代码目录
(1) source build/envsetup.sh
(2)lunch
选择一个(我选择的1 generic-eng)
(3)make
2. 中间编译报错:
(1)第一个问题
参考如下文章
http://blog.csdn.net/t80t90s/article/details/7700118
错误2:
host C++: libutils <= frameworks/base/libs/utils/RefBase.cpp
frameworks/base/libs/utils/RefBase.cpp: In member function ‘void android::RefBase::weakref_type::trackMe(bool, bool)’:
frameworks/base/libs/utils/RefBase.cpp:483:67: error: passing ‘const android::RefBase::weakref_impl’ as ‘this’ argument of ‘void android::RefBase::weakref_impl::trackMe(bool, bool)’ discards qualifiers [-fpermissive]
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libutils_intermediates/RefBase.o] 错误 1
解决:
gedit frameworks/base/libs/utils/Android.mk
Change the line:
LOCAL_CFLAGS += -DLIBUTILS_NATIVE=1 $(TOOL_CFLAGS)
To:
LOCAL_CFLAGS += -DLIBUTILS_NATIVE=1 $(TOOL_CFLAGS) –fpermissive (注意-fpermissive中的“-”是无输入法下的“-”)
参考如下文章:
http://blog.csdn.net/bailyzheng/article/details/11544889
Android编译源码时出现的:<命令行>:0:0: 错误: “_FORTIFY_SOURCE”重定义 [-Werror]
<span style="font-size:14px;">修改build/core/combo/HOST_linux-x86.mk 61行,将HOST_GLOBAL_CFLAGS += -D_FORTIFY_SOURCE=0修改成HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0Android源码换服务器了,具体的看<a target=_blank target="_blank" href="http://source.android.com/source/downloading.html" style="text-decoration: none;">http://source.android.com/source/downloading.html</a></span>
- ubuntu12.04先编译android2.3.6源代码
- ubuntu12.04下载编译android2.3源代码
- 准备知识: Ubuntu12.04 编译 android2.3
- android2.3.4----1.ubuntu12.04 64位编译android2.3.4
- android2.3源代码下载编译
- ubuntu12.04编译gcc-4.2.3源代码
- 在ubuntu12.04上编译 android源代码
- Android编译环境——ubuntu12.04上android2.3.4编译错误以及解决
- ubuntu12.04 32 编译Android2.3源码(源码已有)
- Ubuntu12.04 编译android源代码及生成模拟器经历分享
- ubuntu12.04 下android 源代码下载及编译
- Ubuntu12.04 编译android源代码及生成模拟器经历分享
- 在ubuntu12.04上编译 android源代码(二)
- Ubuntu12.04 编译android源代码及生成模拟器经历分享
- 如何在ubuntu12.04下编译vlc源代码
- ubuntu12.04下编译android源代码出现的问题
- Android—Ubuntu12.0.4下编译android2.3.7系统源码
- Ubuntu12.04: 下载,编译Android2.6.29内核goldfish,将新编译的内核和镜像安装至模拟器
- 《数据结构》实验一: VC编程工具的灵活使用
- Android MediaProvider数据库模式
- Babelfish (map 用法。<string, string>
- SQL Server 检查和处理死锁问题
- ubuntu Android Studio
- ubuntu12.04先编译android2.3.6源代码
- Android中HandlerThread
- IOS ----UIButton用法详解
- Cocos2d-X Box2D中部分方法的重点理解
- C语言中的运算符优先级
- LINUX学习[3]--shell脚本提取文件的文件名、扩展名
- ++i与i++的区别
- linux c 消息队列的使用
- windows的启动过程