Builds fine with mingw-gcc, which is the preferred method. MSVC or clang-LLVM may also be used.
For documentation about the GDNative plugin, check README_GDNATIVE.md
.
- Get Scoop.
scoop install gcc
Replace values in <> with the required values.
- Compile
godot-cpp
:cd godot-cpp; scons platform=<PLATFORM> generate_bindings=yes -j<NUMBER_OF_THREADS_TO_USE> bits=64 use_mingw=yes; cd ..
- Compile
liblinalg
:scons platform=<PLATFORM> -j<NUMBER_OF_THREADS_TO_USE> bits=64 use_mingw=yes
This build uses a modified godot-cpp
submodule. If you clone it separately, make sure to change this line in Defs.hpp (based on this PR) to this:
// alloca() is non-standard. When using MSVC, it's in malloc.h.
#if defined(__linux__) || defined(__APPLE__) //|| defined(__MINGW32__)
#include <alloca.h>
#endif