[meta-freescale] Problem compiling asterisk-13.4.0: how to use packages libxml2, libsdl, and neon

Gyorgy Kovesdi kgy at teledigit.eu
Wed Jul 8 23:51:57 PDT 2015


Hi,

I would like to compile asterisk on master, which needs the mentioned libraries.
The configure output about libxml2 (the same case for libsdl and neon):

....
checking for jansson.h... yes
checking for arm-xml2-config... no
checking for xml2-config... /home/kgy/work/Yocto/MX6-kgy/build/tmp/sysroots/embedsky-e9/usr/bin/crossscripts/xml2-config
configure: *** The Asterisk menuselect tool requires the 'libxml2' development package.
configure: *** Please install the 'libxml2' development package.
WARNING: /home/kgy/work/Yocto/MX6-kgy/build/tmp/work/cortexa9-vfp-neon-poky-linux-gnueabi/asterisk/13.4.0-r0/temp/run.do_configure.21734:1 exit 1 from
  ./configure --host=arm --prefix=/usr
ERROR: Function failed: do_configure (log file is located at /home/kgy/work/Yocto/MX6-kgy/build/tmp/work/cortexa9-vfp-neon-poky-linux-gnueabi/asterisk/13.4.0-r0/temp/log.do_configure.21734)

The script finds libxml2, but it fails then.
The problem is that the script xml2-config contains the followings:

#!/bin/sh
echo '--should-not-have-used-/usr/bin/xml2-config'
exit 1

If i replace it to this:

#!/bin/sh
pkg-config "$1" libxml-2.0

then it can be compiled, and similarly for libsdl and neon packages.

My question is: how can i use these libraries correctly? Is the configure script wrong? Why these scripts are disabled?

Regards
György Kövesdi


More information about the meta-freescale mailing list