首先根据ReadMe设置NDK路径。
然后删除setenv-android-gcc.sh中的
if [ -z "${AOSP_API-}" ]; then
AOSP_API="android-${AOSP_API_VERSION}"
else
echo "WARNING: Using AOSP_API has been deprecated. Please use AOSP_API_VERSION instead."
echo "If you set for example AOSP_API=android-23 then now instead set AOSP_API_VERSION=23"
[ "$0" = "$BASH_SOURCE" ] && exit 1 || return 1
fi
核对https://www.cryptopp.com/wiki/Android_(Command_Line)的内容即可。