<div dir="ltr"><div>I&#39;m new to yocto and bitbake and I&#39;m building a voip application for a custom imx6 board. I want to use  pjsip libraries to build my application, I have compiled pjsip in my yocto build and generated pjsip libraries ( all pjsip libraries r static). I&#39;m having issues building a recipe for my application that calls the pjsip functions. Below is how my recipe looks </div><div><br></div><div><br></div><div>Filename: <a href="http://rttapp.bb">rttapp.bb</a></div><div><br></div><div>DESCRIPTION = &quot;Simple voip application&quot;</div><div>SECTION = &quot;examples&quot;</div><div>LICENSE = &quot;MIT&quot;</div><div>LIC_FILES_CHKSUM =&quot;file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302&quot;</div><div>PR = &quot;r1&quot;</div><div><br></div><div>SRC_URI += &quot;file://rttapp.c&quot;</div><div>SRC_URI += &quot;file://include&quot;</div><div>SRC_URI += &quot;file://lib&quot;</div><div><br></div><div>S = &quot;${WORKDIR}&quot;</div><div><br></div><div>CFLAGS_prepend += &quot;-I${WORKDIR}/include -DPJ_AUTOCONF=1 -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1&quot;</div><div>LDFLAGS_append += &quot;-L${WORKDIR}/lib -lpjsua2-arm-poky-linux-gnueabi -lstdc++ -lpjsua-arm-poky-linux-gnueabi -lm -lrt -lpthread -lasound&quot;</div><div><br></div><div>do_compile() {</div><div>${CC} ${CFLAGS} ${LDFLAGS} rttapp.c -o rttapp</div><div>}</div><div><br></div><div><br></div><div><br></div><div><br></div><div>When i do bitbake rttapp, the error i see is as below</div><div><br></div><div><br></div><div>Log data follows:</div><div>DEBUG: Executing shell function do_compile</div><div>/tmp/cc6nn4Dp.o: In function `main&#39;:</div><div>/usr/src/debug/rttapp/1.0-r1/rttapp.c:159: undefined reference to `pjsua_create&#39;</div><div>collect2: error: ld returned 1 exit status</div><div>WARNING: exit code 1 from a shell command.</div><div><br></div><div><br></div><div>Please advise</div></div>