Ubuntu编译CryptoPP在Android的so文件

首先根据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)的内容即可。

猜你喜欢

转载自blog.csdn.net/myfather103/article/details/87896132