[eclipse-poky] How to add a library to Eclipse with Yocto Plugin?

Andrey Samarin andreyur0lt at gmail.com
Fri Jan 26 11:14:44 PST 2018


Hello everyone


I do not know if I chose the mailing list correctly. If wrong - please
redirect me.

I was faced with the fact that I can not add libraries to the project.
Googling did not help. Questions on the Stackoverflow also did not help.
I duplicate the question here:

I'm using Yocto 2.3.1 under Ubuntu. I create image for Raspebrry Pi 3
without any problem. I install Eclipse and yocto-plugin for Eclipse. I
create HelloWorld Autotools project and debug it on target hardware - no
problems. But, when I try to add some library, besides standart stdlib.h
and stdio.h, I get "undefined reference to 'name'" Where I can add a
library to Eclipse with Yocto Plugin? I can't find this place!

Source: %)

#include <stdlib.h>#include <stdio.h>#include <dbm.h>
int main(void){
 char fn = "someFile";
 dbminit(&fn);
 return 0;}

Toolchain Root Location: /opt/poky/2.3.1/

Sysroot Location:
/opt/poky/2.3.1/sysroots/cortexa7hf-neon-vfpv4-poky-linux-gnueabi

(I'm using SDK for my image)

Thanks in advance.

https://stackoverflow.com/questions/48133444/yocto-project-how-to-add-a-library-to-eclipse-with-yocto-plugin?rq=1


Regards, Andrey.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/eclipse-yocto/attachments/20180126/dfb84dcc/attachment.html>


More information about the eclipse-yocto mailing list