Chapter 8. Porting and Using the Existing Libraries with Android NDK

In this chapter, we will cover the following recipes:

  • Porting a library as a shared library module with the Android NDK build system
  • Porting a library as a static library module with the Android NDK build system
  • Porting a library with its existing build system using the Android NDK toolchain
  • Using a library as a prebuilt library
  • Using a library in multiple projects with import-module
  • Porting a library that requires RTTI, exception, and STL support

Introduction

There are many C/C++ libraries for the Desktop computing world. These libraries can save us a huge amount of effort if we can reuse them on an Android platform. Android NDK makes this possible. In this chapter, we will discuss ...

Get Android Native Development Kit Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.