<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1500662595016_32357" dir="ltr">Maybe it will not help you, but I would suggest you to use a complete development package.</div><div id="yui_3_16_0_ym19_1_1500662595016_32357" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1500662595016_32357" dir="ltr">I mean, you should use autotools or cmake to build your application locally, then package your source and inherit autotools or cmake. It will be easier for you to make things happend.</div><div id="yui_3_16_0_ym19_1_1500662595016_32357" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1500662595016_32357" dir="ltr">Hope this helps.</div><div id="yui_3_16_0_ym19_1_1500662595016_32357" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1500662595016_32357" dir="ltr">Kris</div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> On Friday, July 21, 2017 3:11 PM, Viditha Murahari <viditha@mpconsultants.org> wrote:<br></font></div> <br><br> <div class="y_msg_container"><div id="yiv8974911077"><div dir="ltr"><div>I'm new to yocto and bitbake and I'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'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 rel="nofollow" target="_blank" href="http://rttapp.bb/">rttapp.bb</a></div><div><br></div><div>DESCRIPTION = "Simple voip application"</div><div>SECTION = "examples"</div><div>LICENSE = "MIT"</div><div>LIC_FILES_CHKSUM ="file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"</div><div>PR = "r1"</div><div><br></div><div>SRC_URI += "file://rttapp.c"</div><div>SRC_URI += "file://include"</div><div>SRC_URI += "file://lib"</div><div><br></div><div>S = "${WORKDIR}"</div><div><br></div><div>CFLAGS_prepend += "-I${WORKDIR}/include -DPJ_AUTOCONF=1 -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1"</div><div>LDFLAGS_append += "-L${WORKDIR}/lib -lpjsua2-arm-poky-linux-gnueabi -lstdc++ -lpjsua-arm-poky-linux-gnueabi -lm -lrt -lpthread -lasound"</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':</div><div>/usr/src/debug/rttapp/1.0-r1/rttapp.c:159: undefined reference to `pjsua_create'</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></div>-- <br>_______________________________________________<br>bitbake-devel mailing list<br><a ymailto="mailto:bitbake-devel@lists.openembedded.org" href="mailto:bitbake-devel@lists.openembedded.org">bitbake-devel@lists.openembedded.org</a><br><a href="http://lists.openembedded.org/mailman/listinfo/bitbake-devel" target="_blank">http://lists.openembedded.org/mailman/listinfo/bitbake-devel</a><br><br><br></div> </div> </div> </div></div></body></html>