+2 votes

I'm getting an error in the terminal when trying to compile Godot 3.4.2 from source, it seems to be related to Windows 11. Is there any way to fix this?

scons: Reading SConscript files ...
Configuring for Windows: target=release_debug, bits=64
Using MinGW
Checking for C header file mntent.h... (cached) no
scons: done reading SConscript files.
scons: Building targets ...
[Initial build] Compiling ==> platform\windows\os_windows.cpp
[Initial build] Linking Static Library ==> main\libmain.windows.opt.tools.64.a
[Initial build] Compiling ==> main\tests\test_gui.cpp
[Initial build] Compiling ==> main\tests\test_main.cpp
[Initial build] Compiling ==> main\tests\test_math.cpp
Ranlib Library         ==> main\libmain.windows.opt.tools.64.a
[Initial build] Compiling ==> main\tests\test_oa_hash_map.cpp
[Initial build] Compiling ==> main\tests\test_ordered_hash_map.cpp
[Initial build] Compiling ==> main\tests\test_physics.cpp
[Initial build] Compiling ==> main\tests\test_physics_2d.cpp
[Initial build] Compiling ==> main\tests\test_render.cpp
[Initial build] Compiling ==> main\tests\test_shader_lang.cpp
[Initial build] Compiling ==> main\tests\test_string.cpp
b"platform\\windows\\os_windows.cpp: In member function 'bool OS_Windows::_is_win11_terminal() const':\nplatform\\windows\\os_windows.cpp:2236:21: error: 'ENABLE_VIRTUAL_TERMINAL_PROCESSING' was not declared in this scope\n   return ((dwMode & ENABLE_VIRTUAL_TERMINAL_PROCESSING) == ENABLE_VIRTUAL_TERMINAL_PROCESSING);\n                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nplatform\\windows\\os_windows.cpp:2236:21: note: suggested alternative: 'MM_SPECTRUM_SIGNAL_PROCESSING'\n   return ((dwMode & ENABLE_VIRTUAL_TERMINAL_PROCESSING) == ENABLE_VIRTUAL_TERMINAL_PROCESSING);\n
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n                     MM_SPECTRUM_SIGNAL_PROCESSING\n"
scons: *** [platform\windows\os_windows.windows.opt.tools.64.o] Error 1
scons: building terminated because of errors.
[Time elapsed: 00:00:13.033]
Godot version 3.4.2
in Engine by (14 points)

I suggest to open a bug report at GitHub.

Please log in or register to answer this question.

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.