-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't build against latest gdnative headers in godot repo #80
Comments
I feel like I already encountered this Out of this, doing a |
I did that same diff (vs. godot master) and I see the exact struct that's giving the unresolved refs:
So I'm thinking it has to do with this new 1.1 API struct. |
Yep, it seems I've discarded the API addition too quickly when looking the diff ^^ |
Ho ! I reread your original issue and realised the trouble actually comes from what I suggest ! Anyway this link error is a bit sad because the whole point of GDnative API being divided in pointer-linked structures was to allow painless backward compatibility :'-( |
So what's the next step for this? Is there something core godot should do to prevent the new header functions from "leaking" into the API? Or should gdnative do something to account for the new 1.1 functions? I don't understand the GDnative structure well enough to know where it should be fixed (if anywhere). |
I've try to compile the project and run the tests on linux with godot
So build is fine, but running complains The explanation of this is during build, |
So in the end I guess we should close this issue and accept we should stick with the Godot 3.0 headers that have been copied in the project, and which will be updated if we decide to support further API changes. Obviously this means we couldn't provide optional support for the GDnative api extensions, but I would rather wait for the need to come before doing something about this ;-) |
Is this still the case with Godot 3.2.3 headers? I'm having the same problem, there's a lot of symbols it can't resolve. |
Hi @aaronfranke ;-)
Is it during the runtime of a project using Godot-Python or during compilation of the Godot-Python plugin ? Godot-Python architecture and Godot GDnative have changed quiet a bit since this issue:
So in theory compilation should run fine (except if you try to compile against a very old version of For the runtime part, there is no check in Godot-Python to ensure the version of Godot running is compatible with the As you've noticed the project relies on Godot 3.2.3 headers ( So if you use another version of Godot you might encounter hiccups. If you are compiling Godot-Python, you should try to change the Note there is there is discussion under way to improve the plugin/godot compatibility, but it most likely won't be available before Godot 4: |
I don't know if this is supposed to work, but I tried building godot-python using the latest 3ad9e4740 godot, using its gdnative headers and wrapper lib directly, and it doesn't build on Windows.
Here's the scons command I used:
scons -j16 platform=windows-64 backend=cpython godot_binary=../godot/bin/godot.windows.opt.tools.64.exe MSVC_USE_SCRIPT=True gdnative_include_dir=../godot/modules/gdnative/include gdnative_wrapper_lib=../godot/bin/gdnative_wrapper_code.windows.opt.tools.lib
The errors are these:
The text was updated successfully, but these errors were encountered: