My Specs:
Dell Latitude E6430
Windows 10 Pro version 1909
Latest Release and Updates MSYS2 w/ MinGW-w64 for C++ Development
Python 3.8.0 w/ Pip, Scons and Pywin32 already installed and updated
Custom Build of Godot 3.1.2 stable release
Python3 and MinGW-w64 are already included in the environment path. I have already generated the custom api.json file from my Godot build.
This is my directory's structure.
This was the command I used to compile GDNative C++ with Scons for MinGW-w64:
scons p=windows generate_bindings=yes bits=64 use_mingw=true use_custom_api_file=yes custom_api_file=C:/gdnative_cpp_example/api.json target=release
I followed documentations tutorial and used to godot-cpp and godot_headers that work with Godot 3.1.x, but got bumped at here:
https://docs.godotengine.org/en/3.1/tutorials/plugins/gdnative/gdnative-cpp-example.html#building-the-c-bindings
Which was cause by linking issue with Scons and MinGW-w64. I found this to be the solution:
https://github.com/SCons/scons/wiki/LongCmdLinesOnWin32
I tried all I could, yet have no idea on how to execute it. Can someone please help?