KeepAlive
KeepAlive copied to clipboard
libbinder.so通信方式的分支编译失败
在../../tools/android-sdk-mac_86/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/bits/fortify/string.h
#if ANDROID_API >= ANDROID_API_J_MR1 return __builtin___strcat_chk(dst, src, __bos(dst));
undefined reference to '__strcat_chk'
+1 ,请求楼主有解决方案吗
hi 问题解决了吗?正常来说string.h链接到的是sysroot/usr/include/string.h这个头文件,你们链接到了sysroot/usr/include/bits/fortify/string.h这个位置。可以换一个ndk版本试一下,比如我的ndk版本是r16b。
https://developer.android.com/ndk/downloads/older_releases?hl=zh-cn 替换成ndk r16b 编译成功; linux 64bit 地址如下 https://dl.google.com/android/repository/android-ndk-r16b-linux-x86_64.zip?hl=zh_cn
NDK降级即可