Boost logo

Boost :

Subject: Re: [boost] Building Boost (1.60) with Clang and NDK
From: Dmitry Moskalchuk (dm_at_[hidden])
Date: 2016-01-06 04:40:13


On 05/01/16 23:06, Fatih Kıralioğlu wrote:
> Has anyone built the Boost with Clang and NDK other than CryStax? If so, can you post the related config.jam and build script? I have handled gcc build but clang is very very chalnllenging and no one including the guys in Stackoverflow could answer it.

Hi Fatih,

We're building Boost libraries continuously with clang from CrystaX NDK.
This is not much straightforward, but nothing magical. You can find our
build script here:
https://github.com/crystax/android-platform-ndk/blob/master/build/tools/build-boost.sh.

Here is example how we build it with clang-3.7:

$ ./build/tools/build-boost.sh --abis=armeabi-v7a,x86 --version=1.60.0
--stdlibs=llvm-3.7 $BOOST_DIR

Here BOOST_DIR is directory containing folders named '1.59.0', '1.60.0',
etc.

This script will not work "as is" with Google's NDK due to many
limitations of the last one, but anyway, looking into script's internals
can help understand how to do that.

Also, please take into account that many Boost libraries just could not
be built with Google's NDK (those who requires good support from
underlying libraries such as libc; language-only libraries like
Boost.SmartPtr should work).

-- 
Dmitry Moskalchuk



Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk