The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates. | Twitter

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:

Which was cause by linking issue with Scons and MinGW-w64. I found this to be the solution:

I tried all I could, yet have no idea on how to execute it. Can someone please help?

in Engine by (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.

by (16 points)
edited by

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 Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.