polkadot-java / api

Java APIs around Polkadot and any Substrate-based chain RPC calls. It is dynamically generated based on what the Substrate runtime provides in terms of metadata.Full documentation & examples available.
https://polkadot-java.github.io/
Apache License 2.0
61 stars 28 forks source link

jni.h file not found #26

Open guangxingmao opened 5 years ago

guangxingmao commented 5 years ago

屏幕快照 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!

wangboy commented 5 years ago

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"

LmingXie commented 4 years ago

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