All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gary Thomas <gary@mlbassoc.com>
To: Laurent Joli <l.joli@expemb.com>
Cc: yocto <yocto@yoctoproject.org>
Subject: Re: [Asterisk] recipe 13.1.1
Date: Wed, 29 Jul 2015 07:38:50 -0600	[thread overview]
Message-ID: <55B8D76A.1090507@mlbassoc.com> (raw)
In-Reply-To: <CAJtzDg_BE_+hxYu9jNHUQW3gxme6Ay95NENjA=R6ufj+w9LfCw@mail.gmail.com>

On 2015-07-29 07:25, Laurent Joli wrote:
>
> Hi Gary,
>
> 2015-07-29 15:22 GMT+02:00 Gary Thomas <gary@mlbassoc.com <mailto:gary@mlbassoc.com>>:
>
>     On 2015-07-29 07:14, Laurent Joli wrote:
>
>
>         Hi everybody,
>
>         I am try to build an recipe for asterisk 13.1.1 but I have some errors.
>
>         I will show you my recipe :
>
>         /**********************/
>         DESCRIPTION = "asterisk PBX"
>         DEPENDS = "openssl ncurses sqlite3 libxml2 jansson curl libxslt "
>         HOMEPAGE = "http://www.asterisk.org"
>         LICENSE = "GPLv2"
>         LIC_FILES_CHKSUM = "file://COPYING;md5=3c6764ffcbe996d1d8f919b393ccdd67"
>
>         PR = "0"
>
>         SRC_URI = "http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-${PV}.tar.gz
>         <http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-$%7BPV%7D.tar.gz>
>         <http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-$%7BPV%7D.tar.gz> \
>
>                      file://asterisk.init"
>
>         SRC_URI[md5sum] = "a2781693a67e008d2a3c60b756d4d4ab"
>         SRC_URI[sha256sum] = "070b68238734117c0b9c1018ba192ff29964a115a71620e648d4286c92f2f02b"
>
>         EXTRA_OECONF = " \
>                   --without-curses \
>                   --without-gtk2 \
>                   --without-isdnnet \
>                   --without-misdn \
>                   --without-nbs \
>                   --with-ncurses \
>                   --without-netsnmp \
>                   --without-newt \
>                   --without-ogg \
>                   --without-osptk \
>                   --without-popt \
>                   --without-pri \
>                   --without-radius \
>                   --without-sdl \
>                   --without-spandsp \
>                   --without-suppserv \
>                   --without-tds \
>                   --without-termcap \
>                   --without-tinfo \
>                   --without-vorbis \
>                   --without-vpb \
>                   --without-postgres \
>                   --without-lua \
>                   --disable-xmldoc \
>         "
>
>         inherit update-rc.d
>
>         FILES_${PN}-dbg += "${libdir}/asterisk/modules/.debug"
>
>
>         INITSCRIPT_PACKAGES = "${PN}"
>         INITSCRIPT_NAME_${PN} = "asterisk"
>         INITSCRIPT_PARAMS_${PN} = "defaults 29 29"
>
>         PACKAGES =+ "${PN}-moh"
>
>         DESCRIPTION_${PN}-moh = "Asterisk MusicOnHold sound"
>         FILES_${PN}-moh = "${localstatedir}/lib/${PN}/moh"
>
>
>         do_configure() {
>               echo "begin configure asterisk"
>               ./configure --host=${TARGET_SYS} --build=${BUILD_SYS}  ${EXTRA_OECONF}
>         }
>
>         # Install init script
>         do_install_append() {
>               install -d ${D}${sysconfdir}/init.d
>               install -m 0775 ${WORKDIR}/asterisk.init   ${D}${sysconfdir}/init.d/asterisk
>
>               # Remove EN sound files from this package as they are installed by "asterisk-sounds-en"
>               rm -rf ${D}/var/lib/asterisk/sounds/en
>         }
>
>         FILES_${PN} += "${sysconfdir}/init.d/asterisk \
>                           /run/asterisk "
>         /************************************/
>
>         When I build my recipe , I have  this log :
>
>         //....//
>         checking for utime.h... yes
>         | checking arpa/nameser.h usability... yes
>         | checking arpa/nameser.h presence... yes
>         | checking for arpa/nameser.h... yes
>         | checking sys/io.h usability... yes
>         | checking sys/io.h presence... yes
>         | checking for sys/io.h... yes
>         | checking for initscr in -lncurses... yes
>         | checking curses.h usability... yes
>         | checking curses.h presence... yes
>         | checking for curses.h... yes
>         | checking for uuid_generate_random in -luuid... yes
>         | checking uuid/uuid.h usability... yes
>         | checking uuid/uuid.h presence... yes
>         | checking for uuid/uuid.h... yes
>         | checking for uuid_generate_random in -le2fs-uuid... no
>         | checking for uuid_generate_random... no
>         | checking for json_dumps in -ljansson... yes
>         | checking jansson.h usability... yes
>         | checking jansson.h presence... yes
>         | checking for jansson.h... yes
>         | checking for arm-poky-linux-gnueabi-xml2-config... no
>         | checking for xml2-config... /media/ljoli/disk_one/compile_fido/build/tmp/sysroots/cgtqmx6/usr/bin/crossscripts/xml2-config
>         | configure: *** The Asterisk menuselect tool requires the 'libxml2' development package.
>         | configure: *** Please install the 'libxml2' development package.
>         | + bb_exit_handler
>         | + ret=1
>         | + echo WARNING: exit code 1 from a shell command.
>         | WARNING: exit code 1 from a shell command.
>         | + exit 1
>
>         How to add "libxml2-dev" in my recipe ?
>
>
>     Adding this line should do:
>        DEPENDS = "libxml2"
>
>
> As you can see in my second line of recipe I have already add libxml2.

Sorry, I missed that.

> But that is strange it said me : configure: *** Please install the 'libxml2' development package.

That's because the 'xml2-config' script seems to be disabled.  It contains:
   #!/bin/sh
   echo '--should-not-have-used-/usr/bin/xml2-config'
   exit 1

You'll have to figure out how to make the configure script use
pkg-config instead.

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


  reply	other threads:[~2015-07-29 13:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-29 13:14 [Asterisk] recipe 13.1.1 Laurent Joli
2015-07-29 13:22 ` Gary Thomas
2015-07-29 13:25   ` Laurent Joli
2015-07-29 13:38     ` Gary Thomas [this message]
2015-07-29 13:42       ` Laurent Joli
2015-07-29 13:44         ` Burton, Ross
2015-07-29 14:40           ` Laurent Joli
2015-07-29 14:46             ` Burton, Ross

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55B8D76A.1090507@mlbassoc.com \
    --to=gary@mlbassoc.com \
    --cc=l.joli@expemb.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.