1. R12d 插件源码结构与R11之间的差异
R12d源码结构与R11有差异较大,去掉了IPC方式,增加了AccessorySDK、Transport目录, 并且AccessorySDK目录下也有个makefile。之前有的目录内容也完全不一样了,支持无线CarPlay方式,要求使用mDNSResponder-567版本的Bonjour。 环境配置及R11源码编译的方式请参考博主以前的博文:
CarPlay for Android: Bonjour 及 插件源码移植问题分析 :http://blog.csdn.net/romantic_energy/article/details/46680355
2. R12d 插件源码移植到Linux
把插件源码拷贝到Linux环境下,插件根目录下有源码目录和Examples,把源码目录修改为CarPlay_Plugin,
把Bonjour源码拷贝到插件目录下,去掉版本号,改名为mDNSResponder。修改完成后,插件根目录下有3个目录:
CarPlay_Plugin、Examples、mDNSResponder.
首先编译mDNSResponder:shell进入mDNSResponder\mDNSPosix目录下,执行make,环境搭建好了的话,此步骤没有问题。
然后编译插件源码:shell进入CarPlay_Plugin\PlatformPOSIX目录下,执行make,报以下错误:
cc1: warnings being treated as errors
In file included from ***/CarPlay_Plugin/PlatformPOSIX/../build/Release-unknown/CoreUtils/CFCompat.h:8,
from ***/CarPlay_Plugin/PlatformPOSIX/../Sources/AirPlaySettings.h:9,
from ***/CarPlay_Plugin/PlatformPOSIX/../Sources/AirPlaySettings.c:5:
***/CarPlay_Plugin/PlatformPOSIX/../build/Release-unknown/CoreUtils/CommonServices.h:1638: error: "__SIZEOF_INT128__" is not defined
make: *** [***/CarPlay_Plugin/PlatformPOSIX/../build/Release-unknown/obj/AirPlaySettings.so.o] Error 1
cc1: warnings being treated as errors意为将编译警告视为错误,因为无法去掉所