0 votes

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?

asked Jan 5 in Engine by Jaxen Fyrsu (16 points)

1 Answer

0 votes

I found the solution to use CMake instead. Take a look at the compiled file.

I also replaced the original api.json with my custom one in godot_headers to be certain it worked with my build of Godot.

answered Jan 8 by Jaxen Fyrsu (16 points)
edited Jan 8 by Jaxen Fyrsu

Would this be alright as an alternative compared to compiling with Scons?

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.