TeamCity problem with additional include directories

My project using windows sdk 8.1, but every time when I trying to build. I get error, C1083: Cannot open include file: 'dxgi1_2.h': No such file or directory. It seems that build agent does not have installed sdk 8.1, how to check it through TeamCity. 

Also I placed one copy of Sdk 8.1 in my project, and in Additional Include directories writed "..\..\..\..\Windows Kits\8.1\Include\um". After that I get error, C1083: Cannot open include file: 'dxgi1_2.h': No such file or directory.

It seems that TeamCity check availability of SDK only on build agent and than does not check existing of dxgi1_2.h at ..\..\..\..\Windows Kits\8.1\Include\um.

1. How to check that there is no installed SDK 8.1 on build agent through TeamCity.
2. How to force TeamCity to look at ..\..\..\..\Windows Kits\8.1\Include\um.

3. How to fix this strange behavior?

0
1 comment

Hi Anton,

We don't provide Windows SDK by default so you need to make sure you install it on the agents that will run builds that require it. There is no "automated" way to check it through teamcity, if your install process requires it, you should make sure that it's available in the agent.

It seems clear that the current build process you are running is unable to find the file in question to include it. Also take into account that the build usually runs in %teamcity.build.workDir%, which will be something like <path_to_build_agent>\work\<build_vcs_hash>, so your system might be searching for the file in the wrong path. It's not that it's not looking at ..\..\..... but that that might be a different path to what you are expecting.

0

Please sign in to leave a comment.