Porting a library as a shared library module with the Android NDK build system
This recipe will discuss how to port an existing library as a shared
library with the Android NDK build system. We will use the open source
libbmp library as an example.
Readers are recommended to read the Building an Android NDK application at the command line recipe in Chapter 3, Build and Debug NDK Applications, before going through this one.
How to do it...
The following steps describe how to create our sample Android project that demonstrates porting the libbmp library as a shared library:
- Create an Android application named
PortingSharedwith native support. Set the package name as
cookbook.chapter8.portingshared. Please refer to the Loading native libraries ...