[yocto] pkg-config does not find "luajit" since upgrade to sumo

Burton, Ross ross.burton at intel.com
Thu Mar 28 17:19:27 PDT 2019

On Fri, 29 Mar 2019 at 00:06, Clemens Eisserer <linuxhippy at gmail.com> wrote:
> Hi Burton,
> > > RDEPENDS_${PN} = "luajit"
> > > inherit autotools pkgconfig
> >
> > Considering you're trying to use luajit at build time, it's probably
> > sensible to have it as a build dependency instead (DEPENDS).
> I've just tried it without success - it still fails stating luajit can
> not be found - despite the fact that "bitbake luajit" seems to work
> without any issues.
> I am not sure it makes a difference, I additionally use the
> meta-altera layer and I am running inside a debian chroot (in the same
> environment where the build with angstrom-v2016.06-yocto2 actually
> succeeds).
> Could it have something to do with pkg-config not beeing prefixed -
> like mentioned in the configure log?
> Best regard, Clemens
>  checking for arm-angstrom-linux-gnueabi-pkg-config... no
> | checking for pkg-config...
> /home/ce/yocto_xposure2019/build/tmp-angstrom-glibc/work/armv7at2hf-neon-angstrom-linux-gnueabi/xpcompiler/0.1-r0/recipe-sysroot-native/usr/bin/pkg-config
> | configure: WARNING: using cross tools not prefixed with host triplet


Check what luajit is shipping and compare that to what the pkgconfig
is looking for.  Calling pkgconfig directly in your recipe's devshell
is useful for this.

Not having luajit in DEPENDS *is* a bug though, having it in RDEPENDS
alone means you've been lucky with task scheduling before.


More information about the yocto mailing list