enhance build description (#271)

Writing a script to build the artifacts in a reproducible environment
- PATH for openssl build was not set
- branch for m2049r/monero.git was not set
This commit is contained in:
jenniferberger 2018-09-21 09:52:07 +02:00 committed by m2049r
parent 5e6d3f3032
commit 8a5121e792
1 changed files with 7 additions and 1 deletions

View File

@ -46,6 +46,7 @@ git clone https://github.com/m2049r/android-openssl.git
wget https://github.com/openssl/openssl/archive/OpenSSL_1_0_2l.tar.gz
cd android-openssl
tar xfz ../OpenSSL_1_0_2l.tar.gz
PATH="${PATH}:/opt/android/tool/arm/bin/:/opt/android/tool/arm64/bin/:/opt/android/tool/x86/bin/:/opt/android/tool/x86_64/bin" \
ANDROID_NDK_ROOT=/opt/android/ndk ./build-all-arch.sh
```
@ -85,6 +86,10 @@ cd boost_1_58_0
./bootstrap.sh
```
Comment out ```using ::fgetpos;``` & ```using ::fsetpos;``` in ```cstdio```.
```
sed -i backup "s|using ::fgetpos;|//using ::fgetpos;|" boost/compatibility/cpp_c_headers/cstdio
sed -i backup "s|using ::fsetpos;|//using ::fsetpos;|" boost/compatibility/cpp_c_headers/cstdio
```
Then build & install to ```/opt/android/build/boost``` with
```Shell
@ -102,8 +107,9 @@ ln -sf ../include /opt/android/build/boost/x86_64
```Shell
cd /opt/android
git clone https://github.com/m2049r/monero.git
cd monero
git checkout release-v0.12.3
cd /opt/android/monero
./build-all-arch.sh
```