effekseer / EffekseerForGodot3

MIT License
133 stars 9 forks source link

There is a problem in compiling android? #7

Open unicornlox opened 3 years ago

unicornlox commented 3 years ago

when i give this command: python3 Dev/Cpp/build.py platform=android i am getting this error : ``` godot-cpp/godot-headers/android/godot_android.h:37:10: fatal error: 'jni.h' file not found

include


my system information:
os: manjaro linux
java : openjdk 16.0.2
cmake version :  3.21.2
I added java to path.
Thanks in advance for your interest.
durswd commented 3 years ago

Did you install NDK and add a path?

unicornlox commented 3 years ago

yes, I added android ndk to the path.

ueshita commented 3 years ago

jni.h is in JDK/include. Did you set JAVA_HOME or JDK_HOME?

unicornlox commented 3 years ago

@ueshita yes, I mentioned that I added java to the path. echo $JAVA_HOME output of this command: /usr/lib/jvm/java-16-openjdk/ my jni.h file's path is: /usr/lib/jvm/java-16-openjdk/include/jni.h

echo $JAVA_INCLUDE_DIR output: /usr/lib/jvm/java-16-openjdk/include