dec1/Boost-for-Android

Add support for NDK r16 with unified headers

gjasny opened this issue · 1 comments

Hello,

With NDK r16 the old-style headers are gone and only Unified Headers are available. I guess that's what leads to the following error:

    "clang++" -x c++ -O3 -O3 -Wno-inline -Wall -pedantic -DBOOST_ALL_NO_LIB=1 -DNDEBUG -I"." -c -o "/tmp/ndk-gjasny/tmp/build-79113/build-boost/armeabi-v7a/llvm-5.0/build/boost/bin.v2/libs/regex/build/clang-darwin-arm/release/abi-aapcs/binary-format-elf/link-static/target-os-android/threading-multi/regex_traits_defaults.o" "libs/regex/build/../src/regex_traits_defaults.cpp"

In file included from libs/regex/build/../src/regex_traits_defaults.cpp:20:
In file included from ./boost/regex/regex_traits.hpp:23:
In file included from ./boost/regex/config.hpp:44:
In file included from ./boost/config.hpp:44:
In file included from ./boost/config/detail/select_stdlib_config.hpp:18:
In file included from /Users/gjasny/Android/android-ndk-r16-beta1/sources/cxx-stl/llvm-libc++/include/cstddef:37:
/Users/gjasny/Android/android-ndk-r16-beta1/sources/cxx-stl/llvm-libc++/include/__config:169:10: fatal error: 'features.h' file not found
#include <features.h>
         ^~~~~~~~~~~~
1 error generated.

I'd expect some form of sysroot flag in the compiler invocation but could not spot one.

Thanks,
Gregor