I'm following along the GDExtension tutorial on Ubuntu. I locked both my version of Godot as well as Godot-cpp to the 4.2 branch. I was able to successfully compile the library in the tutorial. When I open the demo project, there is no GDExample node but there also appears to be no errors in the output. Is there any way to confirm it has even attempted to load the GDExtension?
#GDExtension Tutorial not loading node
1 messages · Page 1 of 1 (latest)
you should be able to call godot::UtilityFunctions::print("EXTENSION LOADED"); in initialize_module
Did you make sure to register your class in the same function and did you make sure to correctly setup your .gdextension file?
Thank you for the response. After I first noticed the issue I just directly copy-pasted the respective files to rule out issues with following along, including the gdextension file.
I will add the print statement to see, and report back.
No luck. I even tried throwing it in the example_library_init function block, and did not get anything to print.
Here's my gdexample.extension file:
[configuration]
entry_symbol = "example_library_init"
compatibility_minimum = 4.2
[libraries]
linux.debug.x86_64 = "res://bin/libgdexample.linux.template_debug.x86_64.so"
Is it possible godot needs to be told to read this conf from the res://bin directory in the first place?
no it should automatically find the extension file. Unless there is a .gdignore file in that directory or one above godot will find it.
just to point out the hotreload feature is disabled in your extension so you need to restart the engine in order for the extension to be (re)loaded
could you send a screenshot or write out your folder and file structure?
oh
well I just found out why its not working
ugh you're kidding
I feel like the biggest idiot. i really thought I double-checked the name
That was all it took! I'm getting a stack backtrace now when I try to load the program, which means there's something else I need to look into later, but the loading issue is solved! Thank you so much!
^^
feel free to put your stacktrace in here if you need help with that. or in