Build failing to include Direct x files

RonG's Avatar

RonG

27 Apr, 2018 09:52 PM

I'm trying to do a build that requires Direct X and I'm getting the following build error:

fatal error C1083: Cannot open include file: 'd3d11_3.h'

I'm using cmake to build the VS project, but the exact same process works fine on my local machine, so there must be something installed or some setting that's not being installed/set in AppVeyor.

Anyone else come across this?

  1. Support Staff 1 Posted by Ilya Finkelshte... on 27 Apr, 2018 11:15 PM

    Ilya Finkelshteyn's Avatar

    Quick Google search reveals this advice and search for d3d11_3.h on three main AppVeyor build worker images returns those results. Please let us know if this enough information to put things together.

  2. 2 Posted by RonG on 27 Apr, 2018 11:25 PM

    RonG's Avatar

    Not really. Like I mentioned, this project compiles fine on my local machine, so I must have installed something there that is not being installed on AppVeyor, but I have no idea what it is. According to the AppVoyer docs, DX should be installed.

  3. Support Staff 3 Posted by Ilya Finkelshte... on 27 Apr, 2018 11:47 PM

    Ilya Finkelshteyn's Avatar
    • What do you see in project's properties | Configuration Properties | VC++ Directories | Include Directories (setting described in Stack Overflow post)?

    • What folder d3d11_3.h located on your local machine? You can search it with cd c:\ && dir /s d3d11_3.h command.

    • What where d3d11_3.h command returns on your local machine?

  4. 4 Posted by RonG on 28 Apr, 2018 04:09 AM

    RonG's Avatar

    My include path is: $(VC_IncludePath);$(WindowsSDK_IncludePath)

    The file can be found at c:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\um

    Again, this VS project built by CMake on both machines.

    I am also running the build process on AppVoyer via a script:

    <clone 2nd git repo>
    bin\build_cmake.bat
    cd C:\projects\myproject\_buildWin
    msbuild.exe myproject.vcxproj /t:Build /p:Configuration=Debug

  5. 5 Posted by RonG on 30 Apr, 2018 04:14 PM

    RonG's Avatar

    I went back and rebuilt everything on my local machine and it compiles fine, but still fails on AppVoyer. I'm really at a loss. I am using VS 2015 on both machines.

  6. Support Staff 6 Posted by Owen McDonnell on 30 Apr, 2018 05:28 PM

    Owen McDonnell's Avatar

    Can you make a simplified, public repo that we can fork to reproduce and troubleshoot this error?

  7. 7 Posted by RonG on 30 Apr, 2018 08:44 PM

    RonG's Avatar

    OK, I figured out the problem, and as expected, it was something stupid on my end. I had some old debugging code in that was including the wrong dx .h files. I'm a Mac coder, so my VS skills are basic and I failed on simple searching the project.

  8. Support Staff 8 Posted by Ilya Finkelshte... on 30 Apr, 2018 10:10 PM

    Ilya Finkelshteyn's Avatar

    Thanks a lot for the update!

  9. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:28 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac