#!/bin/sh # Android cross-compile environment setup script # Author : binea # Date : 2019-01-14 # Version : 1.0 export HOME=根目录 # Android NDK sources and standalone toolchain is put here export DEV=${HOME}/dev/android/sdk/adt-bundle-mac-x86_64-20140702/sdk export NDK=${DEV}/android-ndk-r18b export CHAIN_ENV=${NDK}/android-21
# All the built binaries, libs and their header will be installed here # export PREFIX=${HOME}/Chain export PREFIX=$(pwd)/android/$CPU
# static or share libs dir export OUT_PUT=${PREFIX}/android-output
# Don't mix up .pc files from your host and build target export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig
# The building system we are using (Linux x86_64) export BUILD_SYS=arm-linux-gnu
# Set Android target API level export ANDROID_API=21
# Set Android target arch export ANDROID_ARCH=arm
# Set Android target name, according to Table 2 in # https://developer.android.com/ndk/guides/standalone_toolchain.html export ANDROID_TARGET=armv5te-none-linux-androideabi
# The cross-compile toolchain we use export TOOLCHAIN=arm-linux-androideabi
# The path of standalone NDK toolchain # Refer to https://developer.android.com/ndk/guides/standalone_toolchain.html export NDK_TOOLCHAIN=${CHAIN_ENV}/${ANDROID_ARCH}
libavcodec/aaccoder.c: In function'search_for_ms': libavcodec/aaccoder.c:803:25: error: expected identifier or '(' before numeric constant int B0 = 0, B1 = 0; ^ libavcodec/aaccoder.c:865:28: error: lvalue required as left operand of assignment B0 += b1+b2; ^ libavcodec/aaccoder.c:866:25: error: 'B1' undeclared (first use in this function) B1 += b3+b4; ^ libavcodec/aaccoder.c:866:25: note: each undeclared identifier is reported only once for each function it appears in make: *** [libavcodec/aaccoder.o] Error 1
libavcodec/opus_pvq.c: In function'quant_band_template': libavcodec/opus_pvq.c:498:9: error: expected identifier or '(' before numeric constant int B0 = blocks; ^ libavcodec/opus_pvq.c:559:12: error: lvalue required as left operand of assignment B0 = blocks; ^ make: *** [libavcodec/opus_pvq.o] Error 1