Xenia: Build failed: D3D12_FEATURE_D3D12_OPTIONS7 / D3D12_HEAP_FLAG_CREATE_NOT_ZEROED

Created on 23 Oct 2020  路  3Comments  路  Source: xenia-project/xenia

Building fails with the following errors on Windows 10 202H x64 (October 2020 update):

 \xenia\src\xenia\ui\d3d12\d3d12_provider.cc(389,3): error C2065:  'D3D12_FEATURE_DATA_D3D12_OPTIONS7': undeclared identifier [\xenia\build\xenia-ui-d3d12.vcxproj]                                                                                                                                       
 \xenia\src\xenia\ui\d3d12\d3d12_provider.cc(389,37): error C2146:  syntax error: missing ';' before identifier 'options7' [ \xenia\build\xenia-ui-d3d12.vcxproj]                                                                                                                                          
 \xenia\src\xenia\ui\d3d12\d3d12_provider.cc(389,37): error C2065:  'options7': undeclared identifier [ \xenia\build\xenia-ui-d3d12.vcxproj]                                                                                                                                                               
 \xenia\src\xenia\ui\d3d12\d3d12_provider.cc(390,1): error C2065:  'D3D12_FEATURE_D3D12_OPTIONS7': undeclared identifier [ \xenia\build\xenia-ui-d3d12.vcxproj]                                                                                                                                            
 \xenia\src\xenia\ui\d3d12\d3d12_provider.cc(390,1): error C2065:  'options7': undeclared identifier [ \xenia\build\xenia-ui-d3d12.vcxproj]                                                                                                                                                                
 \xenia\src\xenia\ui\d3d12\d3d12_provider.cc(392,36): error C2065:  'D3D12_HEAP_FLAG_CREATE_NOT_ZEROED': undeclared identifier [ \xenia\build\xenia-ui-d3d12.vcxproj]                                                                                                                                      

 ....

 \xenia\src\xenia\ui\d3d12\d3d12_provider.cc(429,39): error C2065:  'D3D12_HEAP_FLAG_CREATE_NOT_ZEROED': undeclared identifier [ \xenia\build\xenia-ui-d3d12.vcxproj]                                                                                                                                 

Most helpful comment

Yes, the minimum Windows SDK version needed to build Xenia is 10.0.19041.0.

All 3 comments

You need to install the latest SDK Version.
Open the Visual Studio Installer from the Start Menu and select Modify. Then there is a list of components, somewhere at the bottom are the Windows 10 SDK Versions.
You likely can deselect the old version

Yes, the minimum Windows SDK version needed to build Xenia is 10.0.19041.0.

You need to install the latest SDK Version.
Open the Visual Studio Installer from the Start Menu and select Modify. Then there is a list of components, somewhere at the bottom are the Windows 10 SDK Versions.
You likely can deselect the old version

Thank you! That did it, build success. Apologies if it was mentioned in documentation, I haven't updated VS in a while (I don't use it for my day job), thanks again :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kobyaustin1 picture kobyaustin1  路  4Comments

Margen67 picture Margen67  路  3Comments

Margen67 picture Margen67  路  3Comments

Razzile picture Razzile  路  3Comments

zerr10 picture zerr10  路  3Comments