Skip to content

Kumarasamy/Boost-for-Android

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Boost for Android

Builds the Boost C++ Libraries for the Android platform, with Google's Ndk.

Tested with Boost 1.64 and Google's Ndk 15b (current versions as of June 2017)

Crystax is an excellent alternative to Google's Ndk. It ships with prebuilt boost binaries, and dedicated build scripts. These binaries will however not work with Goolge's Ndk. If for some reason you can't or don't want to use Crystax then you can't use their boost binaries or build scripts.

This bash script is based on the Crystax build script but modified so that it will build boost with the Google Ndk.

Works with gcc and clang (llvm) Creates binaries for multiple abis (armeabi-v7a, x86, mips etc).

Tested with a development machine running OpenSuse Tumbleweed Linux.

Usage

  • Download and extract the boost source archive to a directory of the form "..../major.minor.patch" eg /home/declan/Documents/zone/mid/lib/boost/1.64.0

  • Create a symbolic link llvm-3.5 to llvm in google's ndk-bundle/toolchains dir (This is only necessary if you want to be able to build with clang)

  • You may need to have libncurses.so.5 available on you development machine. Install via your os package manager (eg Yast) if necessary.

  • Modify the paths (where the ndk is) and variables (which abis you want to build for, which compiler to use etc) in doIt.sh, and execute it

Test App

Also included is test app which can be opened by Android Studio (see ./test-boost). To use the test app make sure to adjust the paths in local.properties (see local.properties_example). Note: The test app uses [Gradle Experimental] (http://tools.android.com/tech-docs/new-build-system/gradle-experimental)

About

Android port of Boost C++ Libraries

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 95.4%
  • Java 3.4%
  • C++ 1.2%