Skip to content

Commit

Permalink
updated example app and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
dec1 committed Jan 23, 2019
1 parent d331d64 commit 8e02f5a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ Build and/or simply download the Boost C++ Libraries for the Android platform, w
The [Boost C++ Libraries](http://www.boost.org/), are possibly *the* most popular and generally useful c++ libraries. It would be nice to be able to use them when developing (native c++ or hybrid java/c++ with Google's [Ndk](https://developer.android.com/ndk/)) apps and/or libraries for Android devices.
The Boost libraries are written to be cross platform, and are available in source code format. However, building the libraries for a given target platform is not a very simple or cross platform experience, at least in practice. Building the Boost libraries for Android can be very difficult and time consuming. This project aims to lower the barrier by offering a simple customizable build script you can use to build Boost for Android (abstracting away all the details of the underlying custom boost build system), and even providing standard prebuilt binaries to get you started fast.

Tested with **Boost 1.69.0** and **Google's Ndk 18b** (current versions as of Jan 2019).
Tested with **Boost 1.69.0** and **Google's Ndk 19** (current versions as of Jan 2019).

Building on a Linux machine is officially supported. Mac and Windows should work fine too but the details of setting up the relevant environments (eg. Cygwin or Homebrew) is beyond the scope of what this project tries to do.

If you want to use an operating system other than Linux when building, the easiest option is to use virtual machines. On your OS of choice install VirtualBox, and with it create a Linux virtual machine with where you do the building. No matter what OS you use to build with, the resulting binaries can then be copied to any other, and used from then on as if you had built on there to start with (theyre cross compiled *for* android and have no memory of *where* they were built).

Works with **clang** (llvm)
*- as of ndk 16 google no longer supports gcc*.
Expand All @@ -17,7 +19,7 @@ Creates binaries for multiple abis (**armeabi-v7a**, **arm64-v8a**, **x86**, **x
*Tested with a development machine running OpenSuse Tumbleweed Linux.*

## Prebuilt
You can just download a current set of standard (shared, clang/llvm) prebuilt binaries [here](https://github.com/dec1/Boost-for-Android/releases) if you don't need to customize the build, or don't have access to a unix-like development machine.
You can just download a current set of standard prebuilt binaries [here](https://github.com/dec1/Boost-for-Android/releases) if you don't need to customize the build, or don't have access to a unix-like development machine.
<!--- [here](http://silverglint.com/boost-for-android/) --->

## Build Yourself
Expand Down
2 changes: 1 addition & 1 deletion example_app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.android.tools.build:gradle:3.3.0'


// NOTE: Do not place your application dependencies here; they belong
Expand Down
4 changes: 2 additions & 2 deletions example_app/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Tue Oct 09 15:12:26 CEST 2018
#Wed Jan 23 13:39:54 CET 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip
8 changes: 3 additions & 5 deletions example_app/local.properties
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
## This file is automatically generated by Android Studio.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file should *NOT* be checked into Version Control Systems,
## This file must *NOT* be checked into Version Control Systems,
# as it contains information specific to your local configuration.
#
# Location of the SDK. This is only used by Gradle.
# For customization when using a Version Control System, please read the
# header note.
sdk.dir=/home/declan/Documents/zone/mid/lib/android/sdk
#Wed Jan 23 12:36:43 CET 2019
ndk.dir=/home/declan/Documents/zone/mid/lib/android/sdk/ndk-bundle
sdk.dir=/home/declan/Documents/zone/mid/lib/android/sdk

# boost install dir: should directly contain "include", "libs" subdirs
boost.dir=/home/declan/Documents/zone/low/Boost-for-Android/build/boost/1.69.0
Expand Down

0 comments on commit 8e02f5a

Please sign in to comment.