This repository was archived by the owner on Nov 17, 2023. It is now read-only.
arm compile error with ndk android-toolchain #13610
Unanswered
bryanlinnan
asked this question in
Q&A
Replies: 1 comment
-
|
@mxnet-label-bot add [build, question] |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
compile error occured when i tried to use android-toolchain to compile mxnet/amalgamation
Environment info (Required)
ubuntu16.04 mxnet1.4 android-ndk-r14b/13b/16b
What to do:
generate android-toolchain
cd
/android-ndk-r14b/build/tools/Tool/android-toolchain./make-standalone-toolchain.sh --platform=android-21 --use-llvm --arch=arm --install-dir=
compile OpenBLAS
git clone https://github.com/xianyi/OpenBLAS.git
export PATH=$PATH:
/Tool/android-toolchain/bin/Tool/openblas installcd OpenBLAS
make TARGET=ARMV7 HOSTCC=gcc CC=arm-linux-androideabi-gcc NOFORTRAN=1
make PREFIX=
build mxnet
git clone --recursive https://github.com/dmlc/mxnet.git
cd mxnet/amalgamation
export PATH=~/Tool/android-toolchain/bin:$PATH
export CXX=arm-linux-androideabi-g++
export CC=arm-linux-androideabi-gcc
make ANDROID=1
MXNet commit hash:
(Paste the output of
git rev-parse HEADhere.)f2ca66f
Error Message:
then i fix this error by modify the mxnet_predict-all.cc with fcntl instead of sys/fcntl
then another error come:
then i fix this error by removing it from mxnet_predict-all.cc
then another error come:
error: 'to_string' is not a member of 'std'
now i don't know how to fix it
Beta Was this translation helpful? Give feedback.
All reactions