+1 vote

Hello,

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.

asked Apr 26 in Engine by Thrallherd (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 How to use this Q&A? before posting your first questions.