0 votes

Hello, I'm currently having troubles getting started with a C++ Android project in Godot.

I was able to build the cpp bindings for windows and get the C++ code built and implemented into Godot via a ".dll" file, but I can't figure out the process for Android. Currently The C++ code I have doesn't do much more than just move a sprite but it works perfectly both within the editor and a Windows build. However when I export for android, the apk exports and runs fine but seems to be missing the C++ scripts.

I think I'm somehow supposed to build a separate ".so" file to be included in the gdnlib file when exporting to Android but I can't quite figure it out.

Also am I supposed to build different cpp bindings for android in SCons? I tried setting "platform=android" but it was invalid and only listed windows, linux and ios as valid options.

If anyone has any tips or previous experience in implementing C++ into an Android project in Godot I would greatly appreciate it.

asked Sep 11, 2019 in Engine by Harizio (12 points)

1 Answer

0 votes

I and TGRCdev have added GDNative support for android
The pull request has been merged with the master

Checkout this repo for details on GDNAtive arm64/arm android
https://github.com/GodotNativeTools/godot-cpp
"How to use" is given in readme.me

answered Oct 1, 2019 by jayanthl (43 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.