androidstudio 默认工具链 `aarch64-linux-android-gcc` 不存在
In androidstudio default toolchain `aarch64-linux-android-gcc` does not exist
According to this page I don't need to be using the standalone toolchain anymore. 我更新到 NDK 20,所以我认为这应该对我有用。
但是,当我开始尝试重新编译我的 C++ 依赖项(首先是 ffmpeg)时,我发现需要 aarch64-linux-android-gcc
。但是这个文件在 $NDK
目录下 anywhere 不存在(它确实存在于独立的工具链目录中)。
所以我很困惑,因为我从中得到的印象
Warning: If using r19 or newer, follow the Other Build Systems document for instructions on using the NDK toolchains with arbitrary build systems. As of r19, the NDK's default toolchains are standalone toolchains, which renders this process unnecessary.
是我可以使用现有的工具链。我的问题是:这些信息是否有误,我应该继续使用独立工具链,还是我做错了什么?
如果您的构建使用 GCC,独立工具链将无济于事。 NDK 不再支持 GCC。您需要(最好)将构建转换为使用 Clang 或(了解这意味着您将要与已修复的错误作斗争)将您的 NDK 降级到支持 GCC (r17) 的版本。
According to this page I don't need to be using the standalone toolchain anymore. 我更新到 NDK 20,所以我认为这应该对我有用。
但是,当我开始尝试重新编译我的 C++ 依赖项(首先是 ffmpeg)时,我发现需要 aarch64-linux-android-gcc
。但是这个文件在 $NDK
目录下 anywhere 不存在(它确实存在于独立的工具链目录中)。
所以我很困惑,因为我从中得到的印象
Warning: If using r19 or newer, follow the Other Build Systems document for instructions on using the NDK toolchains with arbitrary build systems. As of r19, the NDK's default toolchains are standalone toolchains, which renders this process unnecessary.
是我可以使用现有的工具链。我的问题是:这些信息是否有误,我应该继续使用独立工具链,还是我做错了什么?
如果您的构建使用 GCC,独立工具链将无济于事。 NDK 不再支持 GCC。您需要(最好)将构建转换为使用 Clang 或(了解这意味着您将要与已修复的错误作斗争)将您的 NDK 降级到支持 GCC (r17) 的版本。