Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typescript/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 编译旧版libhardware_时出错_Android_Arm_Wifi - Fatal编程技术网

Android 编译旧版libhardware_时出错

Android 编译旧版libhardware_时出错,android,arm,wifi,Android,Arm,Wifi,两天前,我读了一些关于如何自我编译cyanogenmod的指南,我想在我的手机(galaxy3i5800)上试一试。这款手机的CPU架构是ARMV6,因此我从androidarmv6.github.io下载了CyanogenMod 10.2源代码和设备文件夹。起初编译进行得很顺利,除了一些“不支持选定的Thumb模式…”错误,我通过在涉及的Android.mk中添加“-marm”CFLAG来修复这些错误。但是,现在我仍停留在libhwardware_遗留编译上,因为我不断收到错误: target

两天前,我读了一些关于如何自我编译cyanogenmod的指南,我想在我的手机(galaxy3i5800)上试一试。这款手机的CPU架构是ARMV6,因此我从androidarmv6.github.io下载了CyanogenMod 10.2源代码和设备文件夹。起初编译进行得很顺利,除了一些“不支持选定的Thumb模式…”错误,我通过在涉及的Android.mk中添加“-marm”CFLAG来修复这些错误。但是,现在我仍停留在libhwardware_遗留编译上,因为我不断收到错误:

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

target thumb C:libhardware\u legacyOK!为了解决这个问题,我删除了
“const prop_info*pi”
,并添加了以下内容:

struct prop_info{
unsigned serial;
};
struct prop_info *pi; 
但我认为,如果系统编译,它将无法启动。但是,我将尝试从编译CM10.1的人那里转储libhardware_遗产,因为代码是相同的


更新:我可能发现了主要问题。同样的错误再次出现,现在有7个,问题是它们在init中,所以我无法解决。但是我注意到wifi.c和property_service.c在公共sys/_system_properties中有一个头。h可能主要的错误在某个地方。有人找到了解决方案?

不幸的是,取消定义LIBC\u SYSTEM\u属性没有帮助。你所说的搜索源代码/配置是什么意思?我有它,现在我也意识到问题就在那里!你说我的设备硬编码是什么意思?抱歉,如果我问了这么多愚蠢的问题,但我仍在学习。您的定义
prop\u info
与链接相似还是不同?不幸的是,文件相同,我也检查了其他版本,但它们都相同。这个问题出现在base stuff中,所以它应该与linux完全一样。我认为
serial
值正在对属性进行版本控制,以查看它是否获得了新值。您可能能够完全删除版本控制。我留下了一个不正确的答案供你阅读。在某种程度上,
prop_info
不是不透明的,并且有一个版本;也许新版本有这样的功能,但这样做似乎是一个糟糕的界面。