+1 vote


I'm completely lost with this tutorial : https://docs.godotengine.org/en/3.2/tutorials/plugins/gdnative/gdnative-cpp-example.html

First it's unclear what the tree view should be. Here's mine.

enter image description here
enter image description here
enter image description here
enter image description here
enter image description here

My problem is that I don't get the Godot icon to move when I run the project. If I copy godot-cpp/bin/ and paste it into godot-cpp/demo/ so that I can load godot-cpp/demo/bin/gdexample.gdns as the Sprite's script (...is that really how we're supposed to do things?), the situation remains the same. Please help, this tutorial is extremely confusing.

in Engine by (19 points)

where is gdexample.so file?

I don't know.

$ scons platform=linux generate_bindings=yes use_custom_api_file=yes -j4
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
scons: `bin/libgodot-cpp.linux.debug.64.a' is up to date.
scons: done building targets.

good you have compiled gdnative bindings
Now you need to write your plugin (gdexample in tutorial) and compile it using scons (different SConstruct file) and you will get .so files, thats the plugin

Thank you it works now. I was unaware that two different SConstruct files were needed for the entire thing to work.

Please log in or register to answer this question.

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 Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.