[yocto] Linking of external libraries in the recipe
Priya Agarwal
priya_agarwal at students.iitmandi.ac.in
Thu Mar 12 05:30:22 PDT 2015
Hello,
I have taken a recipe for the package squid from OpenEmbedded.org and have
built it along with the kernel image.
Now I want to edit its recipe so that it will include some external
libraries.
But these libraries are the ones that are generated during the build. So
how do I edit the recipe to include those libraries?
Location of library: ../yocto/<build-directory>/............/libusdpaa.a
currently the do_compile task is failing as I have used an extra function
whose library I haven't included. Snippet of the error:
| main.cc: In function 'int SquidMainSafe(int, char**)':
| *main.cc:1259:10: error: 'of_init' was not declared in this scope*
| make[3]: *** [main.o] Error 1
| make[3]: *** Waiting for unfinished jobs....
| make[3]: Leaving directory
`/media/NewVolume/yocto/build_t4240qds_release/tmp/work/ppce6500-fsl_networking-linux/squid/3.4.7-r0/squid-3.4.7/src'
| make[2]: *** [all-recursive] Error 1
| make[2]: Leaving directory
`/media/NewVolume/yocto/build_t4240qds_release/tmp/work/ppce6500-fsl_networking-linux/squid/3.4.7-r0/squid-3.4.7/src'
| make[1]: *** [all] Error 2
| make[1]: Leaving directory
`/media/NewVolume/yocto/build_t4240qds_release/tmp/work/ppce6500-fsl_networking-linux/squid/3.4.7-r0/squid-3.4.7/src'
| make: *** [all-recursive] Error 1
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (see
/media/NewVolume/yocto/build_t4240qds_release/tmp/work/ppce6500-fsl_networking-linux/squid/3.4.7-r0/temp/log.do_compile.28810
for further information)
ERROR: Task 799
(/media/NewVolume/yocto/meta-oe/meta-networking/recipes-daemons/squid/
squid_3.4.7.bb, do_compile) failed with exit code '1'
I have attached my recipe.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20150312/416e4864/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: squid_3.4.7.bb
Type: application/octet-stream
Size: 2488 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20150312/416e4864/attachment.obj>
More information about the yocto
mailing list