Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Android port of Boost C++ Libraries
Shell
branch: master

This branch is 132 commits behind MysticTreeGames:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
patches
README.md
build-android.sh
build-common.sh

README.md

Boost for Android

Boost for android is a set of tools to compile the main part of the Boost C++ Libraries for the Android platform.

To compile Boost for Android you may use the customized NDK r4b provided by Dmitry Moskalchuk aka CrystaX. Or you may download official NDK r5c.

Quick Start

Dependencies

Usage

./build-android.sh crystax/ndk/root

This command will download and build boost against the Crystax NDK and output the final headsr and libs and in the build folder.

For more info about usage and available commands use --help

Now that you got boost compiled you must add it to your Android.mk file. First copy the the inlcude and lib filder over to your jni folder. I copied it just into: /jni/boost/.

Add the following to your Android.mk:

LOCAL_CFLAGS += -I$(LOCAL_PATH)/boost/include/ 
LOCAL_LDLIBS += -L$(LOCAL_PATH)/external/boost/lib/ -lboost_system -lboost_...

LOCAL_CPPFLAGS += -fexceptions
LOCAL_CPPFLAGS += -frtti

Now use crystax ndk-build and have fun with it! Also note that you should build your projct and Boost with one version of NDK - STL inside NDK r4 and NDK r5 are not compatible in some subtle details.

Something went wrong with that request. Please try again.