To build as libary
Right Click->Properties->Build->Setting-Build Artifact->Dropdown to choose Shared/Static library
Now to include this library, copy the library to the project you want it and put it in a libs folder at the same level as the src level. Note, I am assuming that you have a src folder.
On this project Right Click->Properties->Build->Setting->Libraries->
- in the -l area add name of library without the prefix lib and without the suffix .so
- in the -L area add ../libs, remember its 2 dots since the current folder is src, not the root of the project 🙂 YEAH, I tried ./libs for 1 hours before trying out ../libs