在Ubuntu上编译CyanogenMod 2.3 generic
来源:互联网 发布:湖南青果软件 编辑:程序博客网 时间:2024/06/04 19:31
在Ubuntu上编译CM2.3 generic版,主要参考官方文档:
http://wiki.cyanogenmod.com/wiki/Android_SDK_Emulator:_Compile_CyanogenMod_(Linux)
在编译过程中遇到的问题有:
1)Checking API: checkapi-last
Checking API: checkapi-current
(unknown): error 13: Class android.app.Profile changed final qualifier
.....
******************************
You have tried to change the API from what has been previously approved.
To make these errors go away, you have two choices:
1) You can add "@hide" javadoc comments to the methods, etc. listed in the
errors above.
2) You can update current.xml by executing the following command:
make update-api
To submit the revised current.xml to the main Android repository,
you will need approval.
******************************
make: *** [out/target/common/obj/PACKAGING/checkapi-current-timestamp] Error 38
解决办法:执行make update-api 后再编译,顺利完成。
2)编出来的镜像在官方SDK下的模拟器上运行是黑屏,无任何显示。
解决办法:直接运行官方模拟器,也是黑屏,用emulator -verbose观察发现
按照官方文档Create a folder called android-10-cyanogen on Your/Android-SDK/platforms/方法,在新建
Vitual device时无论选择第一个2.3.3还是第二个2.3.3,都是调用android-10-cyanogen中CM的镜像,
在source.properties修改Platform.Version=2.3.7,用以区分系统原有镜像和CM镜像。
然后运行官方模拟器原有的系统镜像正常,故还是CM编译出来系统镜像的问题。
emulator -verbose -show-kernel @cm2.3
运行出现错误:kernel panic - not syncing:attempted to kill init,屏幕黑屏无任何显示。
在CM源码中找到armv7的linux内核镜像kernel kernel-qemu-armv7,拷到sdk相应目录,再次执行
emulator -verbose -show-kernel @cm2.3 -kernel kernel-qemu-armv7,
成功在模拟器上运行CM源码编译的ROM啦。
- 在Ubuntu上编译CyanogenMod 2.3 generic
- 在Ubuntu12.04编译CyanogenMod源码
- 在ubuntu上编译skia
- 在ubuntu上编译chrome
- 在ubuntu上编译chrome
- 在ubuntu上编译chrome
- 解决Xcode库lib在generic iOS devices平台上编译失败的问题
- 在32位Ubuntu 10.04上编译Android 2.3
- 在Ubuntu上编译 Android Gingerbread 2.3.1
- 在Ubuntu上编译Android Gingerbread 2.3.1
- 在32位Ubuntu 10.04上编译Android 2.3
- 在32位Ubuntu 10.04上编译Android 2.3
- 在ubuntu 12.10 上编译android 2.3 经历
- opencv 2.3.1在ubuntu 10.04上编译通过
- Ubuntu上 linux-image-extra-4.13.0-17-generic ,linux-image-generic,linux-generic错误解决方法
- CyanogenMod源码编译模拟器
- CyanogenMod源码编译
- 在ubuntu 上下载 编译android 源码
- 合并Dev控件包为一个独立的包,解决带皮肤后编译文件过大问题
- const char to LPCTSTR不能转化问题
- 2011.9至2012.1半年总结
- C++ explicit关键字应用于构造函数
- 企业级的开发组件02 - DevExpress DXperience Universal 2011.2.5 Final
- 在Ubuntu上编译CyanogenMod 2.3 generic
- 生成验证码
- Ubuntu Server 11.10架设Git服务器支持公开版本库
- 探索Android中的Parcel机制
- 必须掌握的8个DOS命令
- 为泰泽铺路, Intel宣布32nm Atom正式出货 规格详解
- MySQL查询缓存优化
- baby爸爸年末碎语
- tomcat 配置,部署servlet全记录