moritz-wundke / Boost-for-Android

Android port of Boost C++ Libraries
995 stars 479 forks source link

More flexibility in the options with this script. #247

Open SuperGNUS opened 1 year ago

SuperGNUS commented 1 year ago

This adds much more flexibility to the script to not download the Boost Library or clear it out except when you add --clean for it.

Also added some more options to where to build the library and where to source it from.

SuperGNUS commented 1 year ago

This finally fixes the Linux building of Android, at least on Ubuntu 2.7.6, because patch ver 2.7.6 doesn't patch symlinks, you need to patch the original file. it took a long time to figure this out!

pelya commented 1 year ago

You have missed some variable, because CI script downloads 1.80.0 but tries to build 1.78.0

Building boost version: 1.80.0 Detected Android NDK version 25.1 Building with TOOLSET=clang CONFIG_VARIANT=ndk23 CXXPATH=/usr/local/lib/android/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ CFLAGS= CXXFLAGS=-std=c++14 ./build-android.sh: 491: cd: can't cd to boost_1_78_0 Performing boost bootstrap ERROR: Could not perform boostrap! See /home/runner/work/Boost-for-Android/Boost-

pelya commented 1 year ago

Still the same problem with CI, the script uses incorrect Boost version

Building boost version: 1.79.0 Detected Android NDK version 25.0 Building with TOOLSET=clang CONFIG_VARIANT=ndk23 CXXPATH=/usr/local/lib/android/sdk/ndk/25.0.8775105/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ CFLAGS= CXXFLAGS=-std=c++14 ./build-android.sh: 492: cd: can't cd to boost_1_78_0

pelya commented 1 year ago

CI still fails, I cannot merge this

pelya commented 1 week ago

Github actions are broken from the server side. 'Waiting for a runner' but no runner is available, previously rhe same CI script was working fine.