mxnet android build

docker : https://github.com/edmBernard/DockerFiles

Dockerfile.android

32bit

ENV NDK_VERSION “android-ndk-r13b”

make clean # && \
# make ANDROID=1

64bit

ENV NDK_VERSION “android-ndk-r14b”

RUN $LIB_DIR/${NDK_VERSION}/build/tools/make_standalone_toolchain.py \
–arch arm64 –api 21 –install-dir $NDK_TOOLCHAIN_DIR –stl=libc++

RUN cd “$LIB_DIR” && git clone https://github.com/xianyi/OpenBLAS.git && cd OpenBLAS && \
git checkout tags/v0.2.19 && \
make TARGET=ARMV8 HOSTCC=gcc CC=aarch64-linux-android-gcc NOFORTRAN=1 && \
make PREFIX=$OPENBLAS_DIR install

ENV CC aarch64-linux-android-clang
ENV CXX aarch64-linux-android-clang++

make clean # && \
# make ANDROID=1

dmlc-minimum0.cc

#include “../dmlc-core/src/io/filesys.cc”

mxnet_predict0.cc

#include “src/common/utils.cc”

#include “src/executor/infer_graph_attr_pass.cc”

Leave a Reply

Your email address will not be published. Required fields are marked *