Add shared libraries to your BAR file
If you add a shared library that is not part of the BlackBerry 10 Native SDK, the shared library is not available and must be packaged as part of your application.
You can add external shared libraries or libraries that you create. The BlackBerry 10 OS uses ELF (Executable and Linking Format) binary format. ELF simplifies the task of making shared libraries and enhances the loading of shared libraries at runtime.
The OS uses a runtime linker to find shared libraries for applications. The OS loads a shared library only when it is not loaded in memory. Shared libraries are identified by a fully qualified pathname and are found in your LD_LIBRARY_PATH in the BAR application descriptor file.
Open the BAR application descriptor file (bar-descriptor.xml) file in your project.
Locate the LD_LIBRARY_PATH entry and specify the folder your shared library is located when deployed on the device.
Save the file.