Error while compiling godot for d3d12 with scons

Godot Version

4.3-dev1

Question

I followed the step-by-step guide to compile Godot with DirectX from this documentation: https://docs.godotengine.org/en/latest/contributing/development/compiling/compiling_for_windows.html#compiling-with-support-for-direct3d-12.
When compiling the godot source code, it goes to the last step which returns the following error:
Criando biblioteca bin\godot.windows.editor.x86_64.lib e objeto bin\godot.windows.editor.x86_64.exp
drivers.windows.editor.x86_64.lib(d3d12_context.windows.editor.x86_64.obj) : error LNK2019: símbolo externo não resolvido, CLSID_D3D12DeviceFactory, referenciado na função “private: void __cdecl D3D12Context::_init_device_factory(void)” (?_init_device_factory@D3D12Context@@AEAAXXZ)
bin\godot.windows.editor.x86_64.exe : fatal error LNK1120: 1 externo não resolvidos
scons: *** [bin\godot.windows.editor.x86_64.exe] Error 1120
scons: building terminated because of errors.

I don’t know how I can solve this

1 Like

When 4.3-dev1 released, it worked for me. I updated to the latest master earlier and get the same error. My guess is that this commit changed something related to CLSID_D3D12DeviceFactory, as this is mentioned in the error message. I would also like to know a solution.

1 Like

I then believe that they will correct it, or mention some change in the documentation, if it is a real change.