Open paulocoutinhox opened 6 years ago
I haven't tried an NDK so new, so no direct experience. Sounds like the header includes within the NDK are messed up. I know newer NDKs have deprecated GCC, so this might be related to that.
I solve the problem with this code in my CMakeLists.txt:
set(USE_NDK_UNIFIED_HEADERS TRUE) # TRUE or FALSE
if (${USE_NDK_UNIFIED_HEADERS})
if (${ANDROID_ABI} STREQUAL "x86_64")
include_directories(${ANDROID_SYSROOT}/usr/include/x86_64-linux-android)
elseif (${ANDROID_ABI} STREQUAL "x86")
include_directories(${ANDROID_SYSROOT}/usr/include/i686-linux-android)
elseif (${ANDROID_ABI} STREQUAL "arm64-v8a")
include_directories(${ANDROID_SYSROOT}/usr/include/aarch64-linux-android)
elseif (${ANDROID_ABI} MATCHES "^armeabi(-v7a)?$")
include_directories(${ANDROID_SYSROOT}/usr/include/arm-linux-androideabi)
elseif (${ANDROID_ABI} STREQUAL "mips")
include_directories(${ANDROID_SYSROOT}/usr/include/mipsel-linux-android)
elseif (${ANDROID_ABI} STREQUAL "mips64")
include_directories(${ANDROID_SYSROOT}/usr/include/mips64el-linux-android)
endif()
endif()
But i dont know if djinni need changes, because in my tests i dont need change djinni and compile all tests with NDK16b without problems.
Hi,
Always that i change the NDK to 16b i got:
Can you make an update to NDK 16b?