AnsweredAssumed Answered

bitbake oe_runmake not able to find header fiels of dependened libraries

Question asked by anjo john on Jan 20, 2017
Latest reply on Jul 4, 2017 by Vincent PRINCE

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.

Outcomes