<div dir="ltr"><span style="font-size:12.8px">Hello Khem Raj,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I did a bitbake -e -c compile -f rttapp  , and this is how my  do_c0mpile command looks</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div>do_compile() {</div><div>        arm-poky-linux-gnueabi-gcc  -march=armv7ve -mfpu=neon  -mfloat-abi=hard -mcpu=cortex-a7 --sysroot=/home/jeesu/viditha/<wbr>imx6ul-evk-audio/build/tmp/<wbr>sysroots/imx6ulevk  -I/home/jeesu/viditha/imx6ul-<wbr>evk-audio/build/tmp/work/<wbr>cortexa7hf-neon-poky-linux-<wbr>gnueabi/rttapp/1.0-r1/include -DPJ_AUTOCONF=1 -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1 -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/<wbr>jeesu/viditha/imx6ul-evk-<wbr>audio/build/tmp/work/<wbr>cortexa7hf-neon-poky-linux-<wbr>gnueabi/rttapp/1.0-r1=/usr/<wbr>src/debug/rttapp/1.0-r1 -fdebug-prefix-map=/home/<wbr>jeesu/viditha/imx6ul-evk-<wbr>audio/build/tmp/sysroots/x86_<wbr>64-linux= -fdebug-prefix-map=/home/<wbr>jeesu/viditha/imx6ul-evk-<wbr>audio/build/tmp/sysroots/<wbr>imx6ulevk=  -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -L/home/jeesu/viditha/imx6ul-<wbr>evk-audio/build/tmp/work/<wbr>cortexa7hf-neon-poky-linux-<wbr>gnueabi/rttapp/1.0-r1/lib -lpjsua2-arm-poky-linux-<wbr>gnueabi -lstdc++ -lpjsua-arm-poky-linux-gnueabi -lm -lrt -lpthread -lasound rttapp.c -o rttapp</div><div>}</div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">and i tried  </div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">ls /home/jeesu/viditha/imx6ul-<wbr>evk-audio/build/tmp/work/<wbr>cortexa7hf-neon-poky-linux-<wbr>gnueabi/rttapp/1.0-r1/lib</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div>jeesu@MPCLinux:~/viditha/<wbr>imx6ul-evk-audio/build/tmp/<wbr>work/cortexa7hf-neon-poky-<wbr>linux-gnueabi/rttapp/1.0-r1/<wbr>lib$ ls                                                                                                                  </div><div>libg7221codec-arm-poky-linux-<wbr>gnueabi.a</div><div>libgsmcodec-arm-poky-linux-<wbr>gnueabi.a</div><div>libilbccodec-arm-poky-linux-<wbr>gnueabi.a</div><div>libpj-arm-poky-linux-gnueabi.a</div><div>libpjlib-util-arm-poky-linux-<wbr>gnueabi.a</div><div>libpjmedia-arm-poky-linux-<wbr>gnueabi.a</div><div>libpjmedia-audiodev-arm-poky-<wbr>linux-gnueabi.a</div><div>libpjmedia-codec-arm-poky-<wbr>linux-gnueabi.a</div><div>libpjmedia-videodev-arm-poky-<wbr>linux-gnueabi.a</div><div>libpjnath-arm-poky-linux-<wbr>gnueabi.a</div><div>libpjsip-arm-poky-linux-<wbr>gnueabi.a</div><div>libpjsip-simple-arm-poky-<wbr>linux-gnueabi.a</div><div>libpjsip-ua-arm-poky-linux-<wbr>gnueabi.a</div><div>libpjsua2-arm-poky-linux-<wbr>gnueabi.a</div><div>libpjsua-arm-poky-linux-<wbr>gnueabi.a</div><div>libresample-arm-poky-linux-<wbr>gnueabi.a</div><div>libspeex-arm-poky-linux-<wbr>gnueabi.a</div><div>libsrtp-arm-poky-linux-<wbr>gnueabi.a</div><div>pkgconfig</div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">It looks like -L in my compile command is pointing to the right location for my libraries. So im not clear what im missing. Please help.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 21, 2017 at 7:25 PM, Khem Raj <span dir="ltr">&lt;<a href="mailto:raj.khem@gmail.com" target="_blank">raj.khem@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br><div class="gmail_quote"><div><div class="h5"><div dir="auto">On Fri, Jul 21, 2017 at 6:43 PM Andre McCurdy &lt;<a href="mailto:armccurdy@gmail.com" target="_blank">armccurdy@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, Jul 21, 2017 at 12:11 PM, Viditha Murahari<br>
&lt;<a href="mailto:viditha@mpconsultants.org" target="_blank">viditha@mpconsultants.org</a>&gt; wrote:<br>
&gt; I&#39;m new to yocto and bitbake and I&#39;m building a voip application for a<br>
&gt; custom imx6 board. I want to use  pjsip libraries to build my application, I<br>
&gt; have compiled pjsip in my yocto build and generated pjsip libraries ( all<br>
&gt; pjsip libraries r static). I&#39;m having issues building a recipe for my<br>
&gt; application that calls the pjsip functions. Below is how my recipe looks<br>
&gt;<br>
&gt;<br>
&gt; Filename: <a href="http://rttapp.bb" rel="noreferrer" target="_blank">rttapp.bb</a><br>
&gt;<br>
&gt; DESCRIPTION = &quot;Simple voip application&quot;<br>
&gt; SECTION = &quot;examples&quot;<br>
&gt; LICENSE = &quot;MIT&quot;<br>
&gt; LIC_FILES_CHKSUM<br>
&gt; =&quot;file://${COMMON_LICENSE_DIR}<wbr>/MIT;md5=<wbr>0835ade698e0bcf8506ecda2f7b4f3<wbr>02&quot;<br>
&gt; PR = &quot;r1&quot;<br>
&gt;<br>
&gt; SRC_URI += &quot;file://rttapp.c&quot;<br>
&gt; SRC_URI += &quot;file://include&quot;<br>
&gt; SRC_URI += &quot;file://lib&quot;<br>
&gt;<br>
&gt; S = &quot;${WORKDIR}&quot;<br>
&gt;<br>
&gt; CFLAGS_prepend += &quot;-I${WORKDIR}/include -DPJ_AUTOCONF=1 -DPJ_IS_BIG_ENDIAN=0<br>
&gt; -DPJ_IS_LITTLE_ENDIAN=1&quot;<br>
&gt; LDFLAGS_append += &quot;-L${WORKDIR}/lib -lpjsua2-arm-poky-linux-<wbr>gnueabi -lstdc++<br>
&gt; -lpjsua-arm-poky-linux-gnueabi -lm -lrt -lpthread -lasound&quot;<br>
&gt;<br>
&gt; do_compile() {<br>
&gt; ${CC} ${CFLAGS} ${LDFLAGS} rttapp.c -o rttapp<br>
<br>
Try splitting this into two commands. First compile rttapp.c to<br>
rttapp.o and then link the final application as a second step. When<br>
linking the application, ensure that rttapp.o is listed on the command<br>
line before the libraries which provide the symbols it requires.<br>
<br>
&gt; }<br>
&gt;<br>
&gt;<br>
&gt; When i do bitbake rttapp, the error i see is as below<br>
&gt;<br>
&gt;<br>
&gt; Log data follows:<br>
&gt; DEBUG: Executing shell function do_compile<br>
&gt; /tmp/cc6nn4Dp.o: In function `main&#39;:<br>
&gt; /usr/src/debug/rttapp/1.0-r1/<wbr>rttapp.c:159: undefined reference to<br>
&gt; `pjsua_create&#39;<br>
&gt; collect2: error: ld returned 1 exit status<br>
&gt; WARNING: exit code 1 from a shell command.<br>
&gt;<br>
&gt;<br>
&gt; Please advise</blockquote><div dir="auto"><br></div></div></div><div dir="auto">You are not having the said libraries in your workdir ensure that either you have them via fetcher or via depends</div><span class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
&gt;<br>
&gt; --<br>
&gt; ______________________________<wbr>_________________<br>
&gt; bitbake-devel mailing list<br>
&gt; <a href="mailto:bitbake-devel@lists.openembedded.org" target="_blank">bitbake-devel@lists.<wbr>openembedded.org</a><br>
&gt; <a href="http://lists.openembedded.org/mailman/listinfo/bitbake-devel" rel="noreferrer" target="_blank">http://lists.openembedded.org/<wbr>mailman/listinfo/bitbake-devel</a><br>
&gt;<br>
--<br>
______________________________<wbr>_________________<br>
bitbake-devel mailing list<br>
<a href="mailto:bitbake-devel@lists.openembedded.org" target="_blank">bitbake-devel@lists.<wbr>openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/bitbake-devel" rel="noreferrer" target="_blank">http://lists.openembedded.org/<wbr>mailman/listinfo/bitbake-devel</a><br>
</blockquote></span></div></div>
</blockquote></div><br></div>