Problems compiling avahi into Android NDK project

前端 未结 2 1381
醉酒成梦
醉酒成梦 2020-12-20 00:29

Over the last few days I\'ve been having a difficult time trying to build avahi into a static or shared library for use with an existing Android NDK project.

We have

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-20 01:07

    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"
    

提交回复
热议问题