How to bind to external libraries with GDExtension #10301
Draft
+4
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Since https://docs.godotengine.org/en/stable/contributing/development/core_and_modules/binding_to_external_libraries.html exists for C++ modules, it could be a good idea to have a manual about how to setup external libraries with GDExtension.
I think it's important to explain the most common issues a user can encounter when trying to bind external libraries, such as compiler errors, and how to fix them.
Godot Engine is probably one of the best platforms to develop on top for beginners and intermediates that want to grow as open source contributors and developers.
I open this draft so that I can gather suggestions while I try to write this section during my current trial and error.
The worst stumbling blocks right have been linking and godotengine/godot-cpp#1469 godotengine/godot-cpp#1319 godotengine/godot-cpp#957