Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 1.09 KB

HOW_TO_BUILD.md

File metadata and controls

22 lines (17 loc) · 1.09 KB

How to Build the godot-linalg GDNative plugin

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.

Windows

  • Get Scoop.
  • scoop install gcc

Any

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