Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is a problem in compiling android? #7

Open
unicornlox opened this issue Oct 3, 2021 · 4 comments
Open

There is a problem in compiling android? #7

unicornlox opened this issue Oct 3, 2021 · 4 comments

Comments

@unicornlox
Copy link

unicornlox commented Oct 3, 2021

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 <jni.h>

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
Copy link
Contributor

durswd commented Oct 4, 2021

Did you install NDK and add a path?

@unicornlox
Copy link
Author

yes, I added android ndk to the path.

@ueshita
Copy link
Contributor

ueshita commented Oct 6, 2021

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

@unicornlox
Copy link
Author

unicornlox commented Oct 7, 2021

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants