Using libjansson with openembedded on apalis imx6


How can I use libjansson with OpenEmbedded

I tried “bitbake libjansson” but can’t find any ipk file under deploy/ipk

Also how can I cross compile an application that uses libjansson. I prepared the below makefile

SYSROOTS ?= /usr/local/oecore-x86_64/sysroots

CC = ${SYSROOTS}/x86_64-angstromsdk-linux/usr/bin/arm-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-gcc

INCLUDES = -I${SYSROOTS}/armv7at2hf-neon-angstrom-linux-gnueabi/usr/include

LIB_PATH = -L${SYSROOTS}/armv7at2hf-neon-angstrom-linux-gnueabi/lib

LIBS = -lpthread -ljansson

CFLAGS = -O2 -g -Wall -mfloat-abi=hard --sysroot=${SYSROOTS}/armv7at2hf-neon-angstrom-linux-gnueabi


hello.c -o hello
clean: rm -rf hello

but get an error “cannot find -ljansson”

I would be happy if you can guide me about this

The name for libjansson library in OpenEmbedded is jansson. The command would thus be

bitbake jansson

This can be added to the image by having the following in ~oe-core/build/conf/local.conf

IMAGE_INSTALL_append = " jansson"

Any generated SDK as described here would have jansson included as well.

thanks a lot, found them now.
I made a typo in my first post, I used “bitbake jansson” command.
However I was trying to see them under apalis imx6 folder.