最近有没有人尝试过Mxnet amalgamation for android。我陷入了下面的问题。尝试过设置jni路径等,但无济于事
python ./amalgamation.py mxnet_predict0.d mxnet_predict0.cc mxnet_predict-all.cc 0
Not processed: mxnet_predict0.o:
g++ -std=c++11 -Wno-unknown-pragmas -Wall -I/home/ubuntu/newopenblas -mhard-float -D_NDK_MATH_NO_SOFTFP=1 -O3 -fPIC -o jni_libmxnet_predict.o -c jni/predictor.cc
jni/predictor.cc:1:17: fatal error: jni.h: No such file or directory
#include <jni.h>
compilation terminated.
答案 0 :(得分:1)
将-I / NDK_HOME / sysroot / usr / include添加到makefile
编辑mxnet / amalgamation /
的Makefile添加: 导出NDK_ROOT =你的/ Android / ndk / root / path
编辑: CFLAGS + = -I $ {OPENBLAS_ROOT} -I $ {OPENBLAS_ROOT} / include - I $ {NDK_ROOT} / sysroot / usr / include