Community
cancel
Showing results for 
Search instead for 
Did you mean: 
EFedo2
New Contributor I
1,485 Views

Adding new libraries to the Edison SDK

Hi!

Is there documentation on how to add new libraries to the SDK. I want to cross compile software that requires Berkeley DB lib. I am able to build it using SDK-provided environment, however, I am not how and where should I install it to make it available for future builds.

Any help is appreciated!

6 Replies
idata
Community Manager
47 Views

Hello egorf,

 

 

Are you using the Eclipse IDE to use Edison's SDK? If so, you can follow these guides:

 

 

https://wiki.eclipse.org/FAQ_How_do_I_add_an_extra_library_to_my_project's_classpath%3F https://wiki.eclipse.org/FAQ_How_do_I_add_an_extra_library_to_my_project's_classpath%3F

 

http://www.oxfordmathcenter.com/drupal7/node/44 http://www.oxfordmathcenter.com/drupal7/node/44

 

 

In case you're not using Eclipse IDE, how are you using Edison's SDK? I'd need a little bit more info in order to provide you a more accurate answer.

 

 

Peter.
EFedo2
New Contributor I
47 Views

No, I'm just using the environment in Linux command line

idata
Community Manager
47 Views

Thanks for letting me know, I'm used to hearing Edison SDK when people refer to Eclipse. In that case you can check Edison's Native Application Guide (http://download.intel.com/support/edison/sb/edison_nag_331192003.pdf http://download.intel.com/support/edison/sb/edison_nag_331192003.pdf) on section 4. It explains how to use add libraries on a project for Edison.

 

 

Peter.
EFedo2
New Contributor I
47 Views

Thanks for the fast reply!

Exactly what I needed, except for one little thing.

It seems that now, every time I will need a lib, I will have add it manually to the compiler call, or even worse, to an autotools-generated Makefile. Is there a path I could copy the files to, so that they are always available for future builds automatically?

idata
Community Manager
47 Views

Have you tried to add a symlink of the library to /opt/poky-edison/1.7.2/sysroots/core2-32-poky-linux/usr/include? This directory stores most libraries, maybe a symlink to this path may cause the compiler to detect the library.

 

 

Peter.
EFedo2
New Contributor I
47 Views

Thanks for the tip!

Actually what I did was change prefix when running the ./configure script like this:

 

./configure --prefix=/path_to_sdk/poky-edison/1.7.2/sysroots/core2-32-poky-linux/usr

 

After this you can run make and make install as usual. This is only works for the GNU autotools-based project though.

 

Unfortunately, many projects out there are filled with bugs that only arise when cross-compiling, so it takes some patience to build a project with many dependencies.

 

 

Reply