两天前,我读了一些关于如何自编译cyanogenmod的指南,我想在我的手机(Galaxy3 i5800)上试试。这部手机的中央处理器架构是ARMV6的,所以我从androidarmv6.github.io下载了CyanogenMod 10.2源代码,并从https://github.com/sdadier/cm10.1_device_samsung_apollo下载了设备文件夹。起初,编译进行得相当不错,除了一些“不支持选定的拇指模式...”我通过在涉及的Android.mk中添加"-marm“CFLAG修复了这些错误。然而,现在我被libhwardware_legacy编译卡住了,因为我一直收到这个错误:
target thumb C: libhardware_legacy <= hardware/libhardware_legacy/wifi/wifi.c
hardware/libhardware_legacy/wifi/wifi.c: In function 'update_ctrl_interface':
hardware/libhardware_legacy/wifi/wifi.c:473:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
hardware/libhardware_legacy/wifi/wifi.c: In function 'wifi_start_supplicant':
hardware/libhardware_legacy/wifi/wifi.c:835:4: error: expected identifier before 'unsigned'
hardware/libhardware_legacy/wifi/wifi.c:895:20: error: dereferencing pointer to incomplete type
hardware/libhardware_legacy/wifi/wifi.c:912:26: error: dereferencing pointer to incomplete type我在谷歌上搜索了这意味着什么,我在StackOverflow和一些Linux论坛上找到了很多关于这一点的帖子,但没有一条提到安卓、氰根或libhardware_legacy。我的系统有问题吗?代码中是否存在错误(code here)?
请给我一些建议
发布于 2013-09-27 21:18:34
好的!为了解决这个问题,我删除了"const prop_info *pi",并添加了以下内容:
struct prop_info{
unsigned serial;
};
struct prop_info *pi; 但我认为,如果系统编译,它将不会启动。但是,我将尝试转储成功编译CM10.1的人的libhardware_legacy,因为代码是相同的。
更新:我可能找到了主要问题。同样的错误再次出现,现在有7个,问题是它们在初始化中,所以我无法解决。然而,我注意到wifi.c和property_service.c在公共sys/_system_properties.h中有一个头文件,可能主要的错误在那里的某个地方。有人有办法解决这个问题吗?
https://stackoverflow.com/questions/19035192
复制相似问题