bitbake oe_runmake not able to find header fiels of dependened libraries

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

bitbake oe_runmake not able to find header fiels of dependened libraries

Jump to solution
3,812 Views
anjojohn
Contributor IV

Hi,

i am trying to add baresip in yocto. baresip depends upon libre and librem. i have made recipe files for libre and librem. librem depends upon libre. libre recipe files is been added and its libre.so library file and header files are  available in STAGING_LIBDIR and STAGING _INCDIR.  However for librem compilation is failing, its not able to locate the header files of libre.

below is my recipe for librem

PROVIDES_${PN} = "rem"

SRC_URI = "http://creytiv.com/pub/rem-0.4.7.tar.gz"
SRC_URI[md5sum] = "dc7f76de6d3aff19200eb6d0a41dd332"
SRC_URI[sha256sum] = "5d084f5ee17b839680ab6b978357c095c2a85d04bdf61fa03192019e3435954e"

DEPENDS = "re"
inherit autotools pkgconfig
FILES_${PN} += "${libdir}/*"

I have added "re" as DEPENDS in recipe. is this enough for building ?

if i add CFLAGS += "-I${STAGING _INCDIR}/re" then its able to find the header files. But the CFLAGS in makefile will override and compilation error will happen. I have tried to pass CFLAGS with EXTRA_OEMAKE , but this also override the CFLAGS in Makefile.

1 Solution
2,829 Views
nayfe
Contributor I
1 Reply
2,830 Views
nayfe
Contributor I

Hey, 

Did you look at https://github.com/ssalenik/meta-sfl ?

Cheers,

Vincent