Skip to content

Commit 8e02f5a

Browse files
committed
updated example app and readme
1 parent d331d64 commit 8e02f5a

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ Build and/or simply download the Boost C++ Libraries for the Android platform, w
44
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.
55
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.
66

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

9+
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.
910

11+
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).
1012

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

1921
## Prebuilt
20-
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.
22+
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.
2123
<!--- [here](http://silverglint.com/boost-for-android/) --->
2224

2325
## Build Yourself

example_app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ buildscript {
77
jcenter()
88
}
99
dependencies {
10-
classpath 'com.android.tools.build:gradle:3.2.1'
10+
classpath 'com.android.tools.build:gradle:3.3.0'
1111

1212

1313
// NOTE: Do not place your application dependencies here; they belong
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Tue Oct 09 15:12:26 CEST 2018
1+
#Wed Jan 23 13:39:54 CET 2019
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip

example_app/local.properties

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
## This file is automatically generated by Android Studio.
2-
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3-
#
4-
# This file should *NOT* be checked into Version Control Systems,
1+
## This file must *NOT* be checked into Version Control Systems,
52
# as it contains information specific to your local configuration.
63
#
74
# Location of the SDK. This is only used by Gradle.
85
# For customization when using a Version Control System, please read the
96
# header note.
10-
sdk.dir=/home/declan/Documents/zone/mid/lib/android/sdk
7+
#Wed Jan 23 12:36:43 CET 2019
118
ndk.dir=/home/declan/Documents/zone/mid/lib/android/sdk/ndk-bundle
9+
sdk.dir=/home/declan/Documents/zone/mid/lib/android/sdk
1210

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

0 commit comments

Comments
 (0)