1 Star 0 Fork 0

yanmingsheng/fdk-aac

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
fdk_aac_armeabi_v7a_build.sh 1.12 KB
一键复制 编辑 原始数据 按行查看 历史
shengyanming 提交于 2021-02-26 19:38 . shi pei android
# Created by jianxi on 2017/6/4
# https://github.com/mabeijianxi
# mabeijianxi@gmail.com
# /home/ubuntu/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/bin
NDK_HOME=/home/ubuntu/android-ndk-r21d
ANDROID_API=android-21
API=21
SYSROOT=$NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/sysroot/
ANDROID_BIN=$NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin
CROSS_COMPILE=${ANDROID_BIN}/arm-linux-androideabi
CC_CROSS_COMPILE=${ANDROID_BIN}/armv7a-linux-androideabi
basepath=$(cd `dirname $0`; pwd)
echo "$basepath"
CPU=armeabi-v7a
CFLAGS=" "
FLAGS="--enable-static --host=armv7a-linux-androideabi --target=android --disable-asm"
export CXX="${CC_CROSS_COMPILE}${API}-clang++ --sysroot=${SYSROOT}"
export LDFLAGS=" -L$SYSROOT/usr/lib $CFLAGS "
export CXXFLAGS=$CFLAGS
export CFLAGS=$CFLAGS
export CC="${CC_CROSS_COMPILE}${API}-clang --sysroot=${SYSROOT}"
export AR="${CROSS_COMPILE}-ar"
export LD="${CROSS_COMPILE}-ld"
export AS="${CROSS_COMPILE}-as"
echo "-----------------------------"
echo $CC
./configure $FLAGS \
--enable-pic \
--enable-strip \
--prefix=${basepath}/android/$CPU
make clean
make
make install
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/aa_25/fdk-aac.git
git@gitee.com:aa_25/fdk-aac.git
aa_25
fdk-aac
fdk-aac
master

搜索帮助