* [Asterisk] recipe 13.1.1
@ 2015-07-29 13:14 Laurent Joli
2015-07-29 13:22 ` Gary Thomas
0 siblings, 1 reply; 8+ messages in thread
From: Laurent Joli @ 2015-07-29 13:14 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 3701 bytes --]
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
\
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 ?
Regards,
LJO
[-- Attachment #2: Type: text/html, Size: 6813 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Asterisk] recipe 13.1.1
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
0 siblings, 1 reply; 8+ messages in thread
From: Gary Thomas @ 2015-07-29 13:22 UTC (permalink / raw)
To: yocto
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> \
> 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"
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Asterisk] recipe 13.1.1
2015-07-29 13:22 ` Gary Thomas
@ 2015-07-29 13:25 ` Laurent Joli
2015-07-29 13:38 ` Gary Thomas
0 siblings, 1 reply; 8+ messages in thread
From: Laurent Joli @ 2015-07-29 13:25 UTC (permalink / raw)
To: Gary Thomas; +Cc: yocto
[-- Attachment #1: Type: text/plain, Size: 4935 bytes --]
Hi Gary,
2015-07-29 15:22 GMT+02:00 Gary Thomas <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>
>> \
>>
>> 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.
But that is strange it said me : configure: *** Please install the
'libxml2' development package.
>
> --
> ------------------------------------------------------------
> Gary Thomas | Consulting for the
> MLB Associates | Embedded world
> ------------------------------------------------------------
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
[-- Attachment #2: Type: text/html, Size: 6810 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Asterisk] recipe 13.1.1
2015-07-29 13:25 ` Laurent Joli
@ 2015-07-29 13:38 ` Gary Thomas
2015-07-29 13:42 ` Laurent Joli
0 siblings, 1 reply; 8+ messages in thread
From: Gary Thomas @ 2015-07-29 13:38 UTC (permalink / raw)
To: Laurent Joli; +Cc: yocto
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
------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Asterisk] recipe 13.1.1
2015-07-29 13:38 ` Gary Thomas
@ 2015-07-29 13:42 ` Laurent Joli
2015-07-29 13:44 ` Burton, Ross
0 siblings, 1 reply; 8+ messages in thread
From: Laurent Joli @ 2015-07-29 13:42 UTC (permalink / raw)
To: Gary Thomas; +Cc: yocto
[-- Attachment #1: Type: text/plain, Size: 7138 bytes --]
Hello Gary,
2015-07-29 15:38 GMT+02:00 Gary Thomas <gary@mlbassoc.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
>
> Yes, you are allright
> You'll have to figure out how to make the configure script use
> pkg-config instead.
>
> When I use pkg-config instead of xml2-config , I have this log :
| 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-pkg-config... no
| checking for pkg-config...
/media/ljoli/disk_one/compile_fido/build/tmp/sysroots/i686-linux/usr/bin/pkg-config
| Must specify package names on the command line
| Must specify package names on the command line
| 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
>
> --
> ------------------------------------------------------------
> Gary Thomas | Consulting for the
> MLB Associates | Embedded world
> ------------------------------------------------------------
>
[-- Attachment #2: Type: text/html, Size: 9850 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Asterisk] recipe 13.1.1
2015-07-29 13:42 ` Laurent Joli
@ 2015-07-29 13:44 ` Burton, Ross
2015-07-29 14:40 ` Laurent Joli
0 siblings, 1 reply; 8+ messages in thread
From: Burton, Ross @ 2015-07-29 13:44 UTC (permalink / raw)
To: Laurent Joli; +Cc: yocto, Gary Thomas
[-- Attachment #1: Type: text/plain, Size: 215 bytes --]
On 29 July 2015 at 14:42, Laurent Joli <l.joli@expemb.com> wrote:
> | Must specify package names on the command line
>
Looks like you forgot to tell pkgconfig what you are looking for
(libxml-2.0).
Ross
[-- Attachment #2: Type: text/html, Size: 583 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Asterisk] recipe 13.1.1
2015-07-29 13:44 ` Burton, Ross
@ 2015-07-29 14:40 ` Laurent Joli
2015-07-29 14:46 ` Burton, Ross
0 siblings, 1 reply; 8+ messages in thread
From: Laurent Joli @ 2015-07-29 14:40 UTC (permalink / raw)
To: Burton, Ross; +Cc: yocto, Gary Thomas
[-- Attachment #1.1: Type: text/plain, Size: 527 bytes --]
2015-07-29 15:44 GMT+02:00 Burton, Ross <ross.burton@intel.com>:
>
> On 29 July 2015 at 14:42, Laurent Joli <l.joli@expemb.com> wrote:
>
>> | Must specify package names on the command line
>>
>
> Looks like you forgot to tell pkgconfig what you are looking for
> (libxml-2.0).
>
OK.
But How can do that in my configure file of asterisk ?
.../build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/asterisk/13.1.1-0/asterisk-13.1.1
/*************/
I put as attachment the configure file .
> Ross
>
[-- Attachment #1.2: Type: text/html, Size: 1509 bytes --]
[-- Attachment #2: configure --]
[-- Type: application/octet-stream, Size: 905278 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Asterisk] recipe 13.1.1
2015-07-29 14:40 ` Laurent Joli
@ 2015-07-29 14:46 ` Burton, Ross
0 siblings, 0 replies; 8+ messages in thread
From: Burton, Ross @ 2015-07-29 14:46 UTC (permalink / raw)
To: Laurent Joli; +Cc: yocto, Gary Thomas
[-- Attachment #1: Type: text/plain, Size: 517 bytes --]
On 29 July 2015 at 15:40, Laurent Joli <l.joli@expemb.com> wrote:
> But How can do that in my configure file of asterisk ?
>
If that is a proper autoconf configure script then remove your
do_configure() task and just inherit autotools. You'll also want to
inherit pkgconfig.
http://people.freedesktop.org/~dbn/pkg-config-guide.html#using shows how to
use pkgconfig, as you're invoking it from a configure script you can use
the macros at the end of that chapter (PKG_CHECK_MODULES, normally).
Ross
[-- Attachment #2: Type: text/html, Size: 1023 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2015-07-29 14:47 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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
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.