Problems compiling avahi into Android NDK project

风流意气都作罢 提交于 2019-11-29 12:38:58

I'll follow up here with the solution that worked for me.

My solution was to use JMDNS instead of Avahi.

There's not much traffic on the Avahi mailing list.

JMDNS has working examples available. JMDNS took me about 4 hours to set up within my NDK environment and about a day to work out some "kinks."

user2155848
  1. tar avahi-0.6.31
  2. patch -p1 < 0001-Add-Android-support.patch patch -p1 < 0002-Add-uninstalled.pc.in-files.patch
  3. cd avahi-0.6.31 ./configure --sysconfdir=/etc --localstatedir=/var make
  4. cd the subdirectories: make Android.mk

then, you will see Android.mk in all the subdirectories.

ndk-build V=1 NDK_LOG=2 APP_ABI="armeabi armeabi-v7a"
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!