- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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!
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page