Book Image

Android NDK: Beginner's Guide

By : Sylvain Ratabouil
Book Image

Android NDK: Beginner's Guide

By: Sylvain Ratabouil

Overview of this book

Table of Contents (18 chapters)
Android NDK Beginner's Guide Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Prebuilding Boost on Android


If STL is the most common framework among C++ programs, Boost probably comes second. A real Swiss army knife! This toolkit contains a profusion of utilities to handle most common needs, and even more.

Most Boost features are provided as header-only code, which means that we do not need to compile it. Including headers is enough of an advantage to use it. This is the case of the most popular features of Boost: Smart Pointers, a reference-counting pointer class that handles memory allocation and de-allocation automatically. They avoid most memory leaks and pointer misuse for almost free.

However, a few parts of Boost require compilation first, such as the threading or the unit test library. We are now going to see how to build them with the Android NDK and compile a unit test executable.

Note

Resulting project is provided with this book under the name DroidBlaster_Part18.