-
-
Notifications
You must be signed in to change notification settings - Fork 251
Description
I was trying to figure out how to use gdext on android. Eventually, I found #1250, tried grabbing the attached zip and compile it. It uses godot = "0.3.4"
. Everything worked and I got the same error as the author of the issue. When I updated the library to godot = "0.3.5"
, I started getting errors on ADB:
09-08 16:35:32.983 23600 23639 E godot : ERROR: Cannot get class 'Demo'.
09-08 16:35:32.983 23600 23639 E godot : WARNING: Node Demo of type Demo cannot be created. A placeholder will be created instead.
No other configuration changed, same godot 4.4.1 and NDK and so on. I tried creating a new project and a new GDExtension from scratch following the tutorial in your Book, but got the same issue that the node cannot be created. Also, the prints inside on_level_init
and on_level_deinit
were not printed (from the hot-reload example).
There are no other issues in the ADB logcat that would say "The library could not be loaded" or so, so I'm gaving trouble debugging anything. I tried building the "game" for linux too (Ubuntu 24.04), everything works fine there. Just the Android build doesn't work. I also tried putting the *.so files in /assets/ in the APK instead of the default location of /libs/arm64-v8a/ and updated the path inside the .gdextension
file, didn't help.
Has anyone been able to successfully compile a rust GDExtension for android with the latest version of godot = "0.3.5"
?