How to setup CMake 3.18.1 in an Android project with gradle on Android Studio? I executed the following steps: downloaded the CMake 3.18.1 from Android Sdk – Sdk Tools (folder appeared correctly on Android/sdk/cmake with the 3.10 and 3.6 version) I added the version requested on build.gradle as externalNativeBuild { cmake { version "3.18.1" I ..
Category : boost
An Android app from my organization needs to assign each users an UUID(version 4) when they first launch the app, currently we’re using Boost library 1.58.0 for this purpose, our Android app will use JNI to run the code below for generating UUIDv4: boost::uuids::basic_random_generator<boost::random::lagged_fibonacci44497> generator; generator(); //generating UUIDv4 The code worked fine for years, now ..
I know how to build Boost.Locale for MacOS with custom ICU (that I have already prebuilt for iOS(Arm64/x86_64) and Android(arm64/armv7/x86/x86_64)), here the shell commands: $ ./bootstrap.sh toolset=darwin macosx-version=10.11 macosx-version-min=10.8 –with-icu="/path/to/icu/icu4c/build_macos/prebuilts" $ ./b2 toolset=darwin –without-mpi optimization=speed cxxflags="-arch x86_64 -fvisibility=hidden -fvisibility-inlines-hidden -std=c++11 -stdlib=libc++ -ftemplate-depth=512" linkflags="-stdlib=libc++" –reconfigure boost.locale.iconv=off boost.locale.icu=on -sICU_PATH=/path/to/icu/icu4c/build_macos/prebuilts -link=static stage This lines working perfectly for MacOS. ..
I’m unable to consume Boost headers for Android 32bit architectures (armeabi-v7a and x86). includeboost/ratio/detail/overflow_helpers.hpp:74:82: error: no member named ‘const_min’ in ‘boost::integer_traits<long long>’ [build] static const boost::intmax_t min = boost::integer_traits<boost::intmax_t>::const_min; I’m using clang and toolchains that come with Android NDK along with CMAKE. Can I pass some flags so Boost knows that it’s a 32 bit ..
Recent Comments