Error/fail to compile godot

Godot Version

4.4.1-stable

Question

I tried to compile the godot from the source code to add custom module - it’s my first time compiling. I compiled with scons as recommended by the documentation.

But I got this error message at the end of installation (it failed):

build_def_file(["bin\obj\platform\windows\libuiautomationcore.x86_64.a"], ["platform\windows\uiautomationcore.x86_64.def"])
scons: *** [bin\obj\platform\windows\libuiautomationcore.x86_64.a] Error -1
scons: building terminated because of errors.
INFO: Time elapsed: 00:01:17.48

anybody know how to fix it?

I’m not sure, but telling scons to be verbose might give you a more useful error message to work with.

I don’t understand, what do you mean to tell scons to be verbose? can you give an example?

Try calling scons with --debug=stacktrace as one of the arguments.

I had this issue, turns out i was using a wrong version of minGW

make sure you have the correct version:

Personally i installed MinGW-LLVM (exact version llvm-mingw-20250709-ucrt-x86_64) and it can now compile.
make sure to add the option mingw=yes

1 Like