将avahi移植到arm-linux

1.两个tar包

libdaemon-0.14.tar.gz

avahi-0.6.31.tar.gz

2.先编译libdaemon

tar zxvf libdaemon-0.14.tar.gz
cd libdaemon-0.14/

 ./configure --host=arm-avl-linux-gnueabi --prefix=/home/xxx/airplay/avahi/daemon_arm_prefix

make

make install

3.编译avahi

tar zxvf avahi-0.6.31.tar.gz

cd avahi-0.6.31/

./configure --host=arm-avl-linux-gnueabi --prefix=/home/xxx/airplay/avahi/avahi_arm_prefix --with-distro=none --localstatedir=/    var --disable-gdbm LIBDAEMON_CFLAGS="-I/home/xxx/airplay/avahi/daemon_arm_prefix/include" LIBDAEMON_LIBS="-L/home/xxx/airplay/avahi/daemon_arm_prefix/     lib -ldaemon -L/home/project/mpxx/gst/lib" --disable-qt3 --disable-qt4 --disable-gtk --disable-gtk3 --disable-python --disable-mono GOBJECT_LIBS="-L/home/    project/mpxx/gst/gst_1.0.5/lib -lgobject-2.0" GLIB20_CFLAGS="-I/home/project/mpxx/gst/include/glib-2.0" GLIB20_LIBS="-L/home/project/mpxx/gst/lib -lglib-2.     0"

然后修改avahi-daemon/Makefile

将sysconfdir = $(prefix)/etc

改为sysconfdir = /etc

再执行make命令

make之后再修改avahi-daemon/Makefile

将sysconfdir = /etc

改为sysconfdir = $(prefix)/etc

然后make install

(这样做是为了避免编译程序时将编译时的路径带进去,在板子上运行时会出现错误的路径)

你可能感兴趣的:(将avahi移植到arm-linux)