This solution is based on the mrt-prodz/docker-godot-gdextension-builder.
You can check more details on the Godot-GDExtension C++ 环境搭建 (Docker+MinGW/跨平台) | Convexwf's Kirakira Blog.
[Windows]
You have to run all the following commands from a Git Bash prompt.
# execute on windows
bash shell/build.sh windows
# or bash shell/build_windows.sh
# execute on linux
bash shell/build.sh linux
# or bash shell/build_linux.sh- mrt-prodz/docker-godot-gdextension-builder: Building Godot 4 GDExtension C++ example with Docker
- GDExtension C++ example — Godot Engine (stable) documentation in English
- Godot-GDExtension C++ 环境搭建 (Docker+MinGW/跨平台) | Convexwf's Kirakira Blog
- godotengine/build-containers: Godot engine build containers
- godotengine/godot-build-scripts: Build scripts used for official Godot Engine builds with https://github.com/godotengine/build-containers
- zxffffffff/start-godot-cpp: 一个 Godot 脚手架项目,使用源码编译扩展 C++ modules/GDExtension
- Compiling for the Web — Godot Engine (stable) documentation in English
- Building with scons > 4.0 results in an empty compile_commands.json · Issue #54434 · godotengine/godot