编译HTC desire S CM的代码

下载编译参考下文

http://wiki.cyanogenmod.com/wiki/HTC_Incredible:_Compile_CyanogenMod_(Linux)

一些问题

无法获取firmware

https://github.com/koush/proprietary_vendor_htc

到这里下载saga相关代码,里面有firmware


curl https://raw.github.com/android/tools_repo/master/repo > ~/bin/repo
chmod a+x ~/bin/repo

repo init -u git://github.com/CyanogenMod/android.git -b gingerbread --repo-url=git://github.com/android/tools_repo.git


CalculatorDisplay.java:19: cannot access android.content.Context

关于这个错误,有可能是下载的问题,可以先repo sync下。

然后检查下java相关设置。在我的电脑上很奇怪,因为我是可以编译过google官方的代码的,但cm的代码就不行。

改了之后clean重新make就行了。


Path looks fine. Please post output of following commands.

sudo update-alternatives --config java

sudo update-alternatives --config jar

Make sure that your system is pointing to correct Java version.



undefined reference to 'msm_device_mute'、libaudio.so

I wouldn't bother extracting files, just use the prebuilts from someone else. First clean you current vendor/htc (rm -rf vendor/htc) then clone koush's proprietary files: git clone git://github.com/koush/proprietary_vendor_htc.git vendor/htc and that should let you build.


不要用这个方法:

这里改为false,据说是代码更新的有问题。

BOARD_USES_QCOM_VOIPMUTE := true




下面的文章可以参考下,但里面有的信息已经过时了。


http://www.cnblogs.com/loulijun/archive/2012/2/22.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值