avahi在android系统下编译

在avahi官网上下载源码,zip稳定包,但是其不支持Android编译,所以在github上找到了一个avahi的android补丁,patch文件,但是运行时,总是提示运行patch时路径不对,非常郁闷,于是查看patch的使用语法,发现运行的路径是没有错的,而且也是使用p1参数。

出于无奈,我看了patch文件的内容,其中第一个更改的文件是“.gitignore”,但是我的avahi目录下居然没有这个文件,恍然大悟,原来我下载的avahi是去除了git版本信息的,于是用git clone在服务器上又下载了一份avahi源码(其中包含版本控制文件),再次运行patch,成功,以下是输出。


patching file .gitignore

patching file Android.mk

patching file avahi-client/Makefile.am

patching file avahi-common/Makefile.am

patching file avahi-core/Makefile.am

patching file avahi-core/log.c

patching file avahi-core/socket.c

patching file avahi-daemon/Makefile.am

patching file avahi-daemon/glob.c

patching file avahi-daemon/glob.h

patching file avahi-daemon/main.c

Hunk #1 succeeded at 1395 (offset 33 lines).

Hunk #2 succeeded at 1405 (offset 33 lines).

Hunk #3 succeeded at 1414 (offset 33 lines).

Hunk #4 succeeded at 1426 (offset 33 lines).

Hunk #5 succeeded at 1490 (offset 33 lines).

Hunk #6 succeeded at 1619 (offset 33 lines).

patching file avahi-daemon/sd-daemon.c

patching file avahi-glib/Makefile.am

patching file avahi-gobject/Makefile.am

patching file avahi-utils/Makefile.am

Hunk #1 succeeded at 64 (offset 3 lines).

patching file common/acx_pthread.m4


你可能感兴趣的:(avahi,android系统下编译)