-
-
Notifications
You must be signed in to change notification settings - Fork 667
Add support for Android platform as it builds and runs successfully. #319
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
Conversation
Compiles and runs fine on Android platform
Hi ! |
I don't have much knowledge of linkers, but for this those tools aren't necessary i think, |
I have some notes about this PR
This will make Scons use gcc-style flags when compiling/linking.
If you want, I can consolidate my fixes into a PR to your branch before it merges to |
Thank you very much for finding out problems with this PR , I am quite busy these days with my college and other work, I have only Linux system so didn't give a thought about windows and Mac os Android NDK toolchain binaries. I would be very happy and appreciate if you added your modifications to this PR 😀 |
Will do. I'll work on making compilation work and getting a functioning GDNative plugin on Android. Once it works properly, I'll submit a PR to your branch. 👍 |
The missing environnement variables for the Android compiling give me a linking error when I want to use the generated binding with my GdNative plugin. (https://github.com/utopia-rise/fmod-gdnative) This plugin uses an additionnal dynamic library (Fmod) so the linking step is a bit more complex. When compiling I've already got this warning: Then when I wanted to use it when compiling my Gdnative: /Users/cednaru/testProjects/gdnative-android/fmod-gdnative/../godot-cpp/include/core/Godot.hpp:124: undefined reference to `nativescript_1_1_api' |
@CedNaru Try generating bindings using this godot-cpp and report back. I'm currently fixing bugs for this PR per-platform for Android compilation, so your input would be really helpful. |
GDNative C++ bindings for Android
@TGRCdev TGRCdev Sorry for the late reply As this is your work and you have done the most of the work, I would suggest you to create a pull request on the main repository, and I will withdraw mine ;) It's your decision, if you tell me to merge then I'll merge. Very much thank you for your work For now I have merged ;) |
Hello @BastiaanOlij @TGRCdev has done a great work in making the GDNative work for Android, I would request you to review this pull request and make appropriate action. |
@Jayanth-L I have created a final pull request for the branch, including both of our changes, an up-to-date summary, and some rebasing (I merged two of your commits, but maintained your authorship). This wouldn't have been possible without your commit, as it lead me in the right direction when I had no knowledge whatsoever of the NDK. |
Ok so it's the other pull request that needs to be merged? |
Yes @BastiaanOlij, you can merge other PR I'll be happy :) |
Done! I'll close this one then :) |
Just updating the SConstruct file to inlclude code to build for android using NDK
and updating README.md with small tutorial to build for
armeabi-v7a
andarm64-v8a
.