Integrate boost in iOS / Android - Plunge Interactive

Integrate boost in iOS / Android

This is a little guide to integrate C++ library boost on Xcode (iOS) and Eclipse (Android).

To start with the integration continue reading…


Mini guide that helped me:

1- Download ZIP from here:

2- Extract the ZIP into a folder.

3- Download your version of Boost (.tar.bz2) from:

4- Copy the boost downloaded file to the previous folder you created for the ZIP extraction.

5- Edit “” file and search and replace all versions to match to the one you downloaded (i.e. 1_51_0 to 1_52_0).

6- Run: sh

7- When finish, add to the project in “Build Phases” the “boost.framework “folder generated.


1- Download ZIP from here:

2- Extract ZIP into a folder and edit “”

3- Change all “53” to your version.

4- Add under the line “extact_parameters $@” this:
echo “——- Using AndroidNDKRoot = $PARAMETERS”

5- Repeat steps 3 and 4 from “Boost to IOS” (Download from

6- Copy the folders inside the generated “Build” folder to the “jni” folder of your project. So the file structure will be:


7- Add this to for each library of boost you need to use, in this example I used 3 libraries:
# boost_regex
include $(CLEAR_VARS)
LOCAL_MODULE := boost_regex
LOCAL_SRC_FILES := boost/lib/libboost_regex-gcc-mt-1_53.a

# boost_thread
include $(CLEAR_VARS)
LOCAL_MODULE := boost_thread
LOCAL_SRC_FILES := boost/lib/libboost_thread-gcc-mt-1_53.a

# boost_system
include $(CLEAR_VARS)
LOCAL_MODULE := boost_system
LOCAL_SRC_FILES := boost/lib/libboost_system-gcc-mt-1_53.a

LOCAL_C_INCLUDES += $(LOCAL_PATH)/boost/include/boost-1_53

boost_thread \

8- The order in LOCAL_STATIC_LIBRARIES must be the same as the LOCAL_MODULE.

This site uses cookies to store information on your computer. Some cookies on this site are essential, and the site won't work as expected without them. Read more about them