api icon indicating copy to clipboard operation
api copied to clipboard

jni.h file not found

Open guangxingmao opened this issue 6 years ago • 2 comments

屏幕快照 2019-09-11 09 56 49

while I sh compile.sh, jni.h file not found 屏幕快照 2019-09-11 09 59 00

and I run the command in terminal 屏幕快照 2019-09-11 12 21 35 have the same error, can't output libjni.so

and I want to support arm64-v8a and armeabi-v7a in android, how can i do?

Tks!

guangxingmao avatar Sep 11 '19 02:09 guangxingmao

compile.sh can be run on ubuntu, compile_mac.sh can be run on mac os If you develop on windows, I am not sure about the compile parameters, but it should like /I "$(JAVA_HOME)\include\win32"

wangboy avatar Oct 18 '19 02:10 wangboy

It should be something like this:g++ -shared -fPIC -I "D:\Program Files\Java\jdk1.8.0_231\include" -I "D:\Program Files\Java\jdk1.8.0_231\include\win32" jnimain.cpp -L . -lsr25519crust -o ../java/out/libjni.so

LmingXie avatar Jul 21 '20 12:07 LmingXie