1 Star 0 Fork 0

teragump/Tengine

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
android_build_armv7.sh 911 Bytes
一键复制 编辑 原始数据 按行查看 历史
Haitao 提交于 2019-05-01 16:25 . v1.3.2
#!/bin/bash
PROTOBUF_PATH=
BLAS_PATH=
ARCH_TYPE=
ANDROID_NDK=
ACL_ROOT=
while read line
do
IFS=:
arr=($line)
if [ "${arr[0]}" == "PROTOBUF_DIR" ]; then
PROTOBUF_PATH=${arr[1]}
elif [ "${arr[0]}" == "BLAS_DIR" ]; then
BLAS_PATH=${arr[1]}
elif [ "${arr[0]}" == "CONFIG_ARCH_TYPE" ]; then
ARCH_TYPE=${arr[1]}
elif [ "${arr[0]}" == "ANDROID_NDK" ]; then
ANDROID_NDK=${arr[1]}
elif [ "${arr[0]}" == "ACL_ROOT" ]; then
ACL_ROOT=${arr[1]}
fi
done<../android_config.txt
cmake -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake \
-DANDROID_ABI="armeabi-v7a" \
-DANDROID_ARM_NEON=ON \
-DANDROID_ALLOW_UNDEFINED_SYMBOLS=TRUE\
-DCONFIG_ARCH_ARM32=ON \
-DANDROID_PLATFORM=android-21 \
-DANDROID_STL=c++_shared \
-DPROTOBUF_DIR=$PROTOBUF_PATH \
-DBLAS_DIR=$BLAS_PATH \
-DACL_ROOT=$ACL_ROOT \
..
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/teragump/Tengine.git
git@gitee.com:teragump/Tengine.git
teragump
Tengine
Tengine
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385