Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation fatal error: d3d11on12.h: No such file or directory #140

Open
alixintong opened this issue Oct 2, 2024 · 1 comment
Open
Labels
question Further information is requested wsl Related to Windows Subsystem for Linux support

Comments

@alixintong
Copy link

Currently working on a project that is tested on Linux 22.04 and Linux 20.04. Unfortunately when I tried to build it with the addition #include "d3d12compatibility.h", I'm getting a DirectX-Header compilation error because in lines 111-114 of d3d12compatibility.h:

/* header files for imported files */
#include "oaidl.h"
#include "ocidl.h"
#include "d3d11on12.h"

It is unable to find d3d11on12.h, resulting in this build failure: third_party/directx_headers/include/directx/d3d12compatibility.h:114:10: fatal error: d3d11on12.h: No such file or directory.

I see in this repository both oaidl.h and ocidl.h are found, would it be possible to add in the file d3d11on12.h at the appropriate place as well?

@walbourn
Copy link
Member

walbourn commented Nov 7, 2024

What is it in the "d3d12compatibilty" header that you feel is required when building on Linux? The intent is for this header to only be used for interop on Windows.

@walbourn walbourn added question Further information is requested wsl Related to Windows Subsystem for Linux support labels Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested wsl Related to Windows Subsystem for Linux support
Projects
None yet
Development

No branches or pull requests

2 participants