设为首页 加入收藏

TOP

在Ubuntu上编译CyanogenMod 2.3 generic
2014-11-24 14:39:09 来源: 作者: 【 】 浏览:6
Tags:Ubuntu 编译 CyanogenMod 2.3 generic

在编译过程中遇到的问题有:


.....


******************************



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啦。


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇三个类似 Sinatra 的 Java 框架介.. 下一篇关于C语言拷贝函数的随笔

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: