[avahi] Fwd: dbus+avahi for embedded arm linux (itai shalev)

Mike G dev at midicase.com
Tue Dec 11 03:46:22 PST 2012


> Hi,
> I am trying to cross compile and deploy dbus 1.5.0 and avahi 0.6.3.1,
> i did the following:
>
>    1.  cross compile expat  (expat-2.1.0) the commant used:
>    *    ./configure --host=arm-linux-gnueabi
>    --prefix=/home/tabor/TaborDev/builds/build_expat/
> CC=arm-linux-gnueabi-gcc
>     make; make install*
>    no errors, log files attached (expat_conf.log, expat_make.log,
>    expat_make_inst.log)
>
>    2. cross compiled dbus (dbus-1.5.0) the command used:
>    * ./configure --prefix=/home/tabor/TaborDev/builds/build_dbus/
>    --host=arm-linux-gnueabi --with-x=no ac_cv_have_abstract_sockets=yes
>    "CC=arm-linux-gnueabi-gcc
> -I/home/tabor/TaborDev/builds/build_expat/include
>    -L/home/tabor/TaborDev/builds/build_expat/lib"make;make install;
>    *no errors, log files attached (dbus_conf.log, dbus_make.log,
>    dbus_make_inst.log)
>
>    3. cross compiled libdaemon (dbus-0.14) the command used:
>    *  ./configure --host=arm-linux-gnueabi
>    --prefix=/home/tabor/TaborDev/builds/build_libdaemon/
>    CC=arm-linux-gnueabi-gcc --disable-static ac_cv_func_setpgrp_void=yes
>    make;make install;*
>    no errors log files attached
>    (libdaemon_conf.log, libdaemon_make.log, libdaemon_make_inst.log)
>
>    4. cross compiled avahi (avahi-0.6.31) the command used:
>    * ./configure --prefix=/home/tabor/TaborDev/builds/build_avahi/
>    --host=arm-linux-gnueabi "CC=arm-linux-gnueabi-gcc
>    -I/home/tabor/TaborDev/builds/build_expat/include
>    -L/home/tabor/TaborDev/builds/build_expat/lib" --with-distro=none
>    --disable-glib --disable-gobject --disable-gdbm --disable-qt3
> --disable-qt4
>    --disable-gtk --disable-gtk3 --disable-mono --disable-monodoc
>    --disable-python
>    PKG_CONFIG_PATH=/home/tabor/TaborDev/builds/build_dbus/lib/pkgconfig:/home/tabor/TaborDev/builds/build_libdaemon/lib/pkgconfig
>    **make;make install;
>    *no errors log files attached
>    (avahi_conf.log, avahi_make.log, avahi_make_inst.log)
>
>
>
> now we want to deploy the dbus and the avahi, after adding the build result
> of the dbus to the target under ~/usr/local/


It doesn't look like that is true.  According to the config you supplied
to dbus:

--prefix=/home/tabor/TaborDev/builds/build_dbus/

the install log reflected that:

/bin/bash ../libtool --mode=install /usr/bin/install -c dbus-daemon
/home/tabor/TaborDev/builds/build_dbus/bin



> we tried to launch the
> dbus-daemon:
> */usr/local/bin # ./dbus-daemon start*
> the result was :
> -/bin/sh: ./dbus-daemon: not found
>
> can any one please help with deploy instructions for the  avahi inc.
> dependencies (expat,dbus,libdaemon) for arm-linux os

That's a pretty long request (I maintain one of those "package managers"
for embedded systems and had to integrate avahi).   Here is a
summary/extract of what my build system is doing for 6.30, not sure of
6.31 is different (not all dependencies may be listed).

Build and install expat.

Build and install libdaemon.

Build and install dbus.  Here is a partial configure opts I use for an
embedded system, which may not match what you need:  --with-xml=expat
--without-x --enable-tests=no --enable-selinux=no --localstatedir=/var
--disable-xml-docs --disable-doxygen-docs --sysconfdir=/etc

Note: you still need --prefix= --host= --build=

Build and install Avahi,
Partial configure: --with-distro=debian --disable-nls --disable-glib
--disable-gobject --disable-qt3 --disable-qt4 --disable-gtk --disable-gtk3
--disable-gdbm --disable-mono --disable-monodoc --disable-python
--disable-doxygen-doc --disable-manpages --enable-compat-libdns_sd
--localstatedir=/var --with-avahi-priv-access-group=avahi
--sysconfdir=/etc --enable-autoipd --with-autoipd-user=avahi
--with-autoipd-group=avahi

If you do not want autoipd, then replace the last three with
--disable-autoipd


It's not any fun to hand build packages with complex dependencies (as I
had been doing for many years).  Best to use some sort of board support
package to help get it automated.



> thanks,
> itai shalev
> *
> *
>
> --
> *Itai Shalev*
> *972-508-358475*
> *Haifa,  Israel*
>
>
>
> --
> *Itai Shalev*
> *972-508-358475*
> *Haifa,  Israel*
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> <http://lists.freedesktop.org/archives/avahi/attachments/20121210/28fa601b/attachment.html>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: expat_conf.log
> Type: application/octet-stream
> Size: 6240 bytes
> Desc: not available
> URL:
> <http://lists.freedesktop.org/archives/avahi/attachments/20121210/28fa601b/attachment.obj>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: expat_make.log
> Type: application/octet-stream
> Size: 1932 bytes
> Desc: not available
> URL:
> <http://lists.freedesktop.org/archives/avahi/attachments/20121210/28fa601b/attachment-0001.obj>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: expat_make_inst.log
> Type: application/octet-stream
> Size: 3015 bytes
> Desc: not available
> URL:
> <http://lists.freedesktop.org/archives/avahi/attachments/20121210/28fa601b/attachment-0002.obj>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: dbus_conf.log
> Type: application/octet-stream
> Size: 18161 bytes
> Desc: not available
> URL:
> <http://lists.freedesktop.org/archives/avahi/attachments/20121210/28fa601b/attachment-0003.obj>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: dbus_make.log
> Type: application/octet-stream
> Size: 7936 bytes
> Desc: not available
> URL:
> <http://lists.freedesktop.org/archives/avahi/attachments/20121210/28fa601b/attachment-0004.obj>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: dbus_make_inst.log
> Type: application/octet-stream
> Size: 10215 bytes
> Desc: not available
> URL:
> <http://lists.freedesktop.org/archives/avahi/attachments/20121210/28fa601b/attachment-0005.obj>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: libdaemon_conf.log
> Type: application/octet-stream
> Size: 8702 bytes
> Desc: not available
> URL:
> <http://lists.freedesktop.org/archives/avahi/attachments/20121210/28fa601b/attachment-0006.obj>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: libdaemon_make.log
> Type: application/octet-stream
> Size: 902 bytes
> Desc: not available
> URL:
> <http://lists.freedesktop.org/archives/avahi/attachments/20121210/28fa601b/attachment-0007.obj>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: libdaemon_make_inst.log
> Type: application/octet-stream
> Size: 4428 bytes
> Desc: not available
> URL:
> <http://lists.freedesktop.org/archives/avahi/attachments/20121210/28fa601b/attachment-0008.obj>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: avahi_conf.log
> Type: application/octet-stream
> Size: 24470 bytes
> Desc: not available
> URL:
> <http://lists.freedesktop.org/archives/avahi/attachments/20121210/28fa601b/attachment-0009.obj>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: avahi_make.log
> Type: application/octet-stream
> Size: 8537 bytes
> Desc: not available
> URL:
> <http://lists.freedesktop.org/archives/avahi/attachments/20121210/28fa601b/attachment-0010.obj>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: avahi_make_inst.log
> Type: application/octet-stream
> Size: 35990 bytes
> Desc: not available
> URL:
> <http://lists.freedesktop.org/archives/avahi/attachments/20121210/28fa601b/attachment-0011.obj>
>
> ------------------------------
>
> _______________________________________________
> avahi mailing list
> avahi at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/avahi
>
>
> End of avahi Digest, Vol 93, Issue 1
> ************************************
>



More information about the avahi mailing list