Creating Boost Libraries with Android NDK 10 and Clang Toolchain

I am trying to create boost 1.54 using Clang in Android NDK 10e using the following b2 command arguments:

\ b2 --toolset = clang --user-config =. / user-config-android.jam cxxflags = "- std = C ++ 11 -stdlib = lib ++ -IC: / android-ndk-r10e / platform / android-9 / arch-arm / usr / include -IC: / android-ndk-r10e / sources / cxx-stl / llvm-lib ++ / libcxx / include -IC: / android-NDK-r10e / sources / CXX- STL / LLVM-Lib ++ ABI / libcxxabi / include "linkflags =" - stdlib = lib ++ "threadapi = pthread --prefix = .. \ boost_android_arm --builddir =. / Target-os = linux --with-date_time --with-filesystem --with-regex --with-log define = BOOST_FILESYSTEM_VERSION = 3 --with-program_options --with-signals --with-system --with-thread link = static runtime-link = shared threading = multi install

I have many errors, but the original errors are:

C:/android-ndk-r10e/sources/cxx-stl/llvm-libc++/libcxx/include\string:1371:5: error: unknown type name '_LIBCPP_INLINE_VISIBILITY_EXCEPT_GCC49'
    _LIBCPP_INLINE_VISIBILITY_EXCEPT_GCC49 basic_string()
    ^
C:/android-ndk-r10e/sources/cxx-stl/llvm-libc++/libcxx/include\string:1371:44: error: member 'basic_string' has the same name as its class
    _LIBCPP_INLINE_VISIBILITY_EXCEPT_GCC49 basic_string()

It should be noted that I have successfully built boost for gcc 4.4. Any help would be appreciated.

+4

Source: https://habr.com/ru/post/1622697/


All Articles