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!
Are you using the Eclipse IDE to use Edison's SDK? If so, you can follow these guides:
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.
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.
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?
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.
Thanks for the tip!
Actually what I did was change prefix when running the ./configure script like this:
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.