In this chapter, you will learn how to build popular C/C++ libraries and link them against your applications using Android NDK. These libraries are building blocks to implement feature-rich applications with images, videos, sounds, physical simulations, and networking entirely in C++. We will provide minimal samples to demonstrate the functionality of each library. Audio and networking libraries are discussed in greater detail in the subsequent chapters. We will show you how to compile libraries and, of course, give some short samples and hints on how to start using them.
Typical caveats for porting libraries across different processors and operating systems are memory access (structure alignment and padding), byte order (endianness), calling conventions, and floating-point issues. All the libraries described in the preceding sections address these issues quite well, and even if some of them do not officially support Android NDK, fixing this is just a matter of...