下载编译参考下文
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
下面的文章可以参考下,但里面有的信息已经过时了。