From 8a5121e792461e11108f10120401141afdde0af1 Mon Sep 17 00:00:00 2001 From: jenniferberger <33541744+jenniferberger@users.noreply.github.com> Date: Fri, 21 Sep 2018 09:52:07 +0200 Subject: [PATCH] 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 --- doc/BUILDING-external-libs.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/BUILDING-external-libs.md b/doc/BUILDING-external-libs.md index bbf0c08..7f24a4f 100644 --- a/doc/BUILDING-external-libs.md +++ b/doc/BUILDING-external-libs.md @@ -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 ```